logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HashUtilsTests

    Tests for HashUtils: the SHA-256-to-lowercase-hex shape every hand-rolled content hash in this project already reproduces (MySqlStructuredStore, FileKeyValueStore, SteamIconPngEncoder).

    Inheritance
    object
    HashUtilsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class HashUtilsTests

    Constructors

    HashUtilsTests()

    Declaration
    public HashUtilsTests()

    Methods

    Sha256Hex_DifferentBytes_ProducesADifferentDigest()

    Declaration
    public void Sha256Hex_DifferentBytes_ProducesADifferentDigest()

    Sha256Hex_EmptyBytes_ReturnsTheEmptyInputDigest()

    Declaration
    public void Sha256Hex_EmptyBytes_ReturnsTheEmptyInputDigest()

    Sha256Hex_Is64HexCharactersLong()

    Declaration
    public void Sha256Hex_Is64HexCharactersLong()

    Sha256Hex_IsAlwaysLowercase()

    Declaration
    public void Sha256Hex_IsAlwaysLowercase()

    Sha256Hex_KnownInput_MatchesTheKnownDigest()

    Declaration
    public void Sha256Hex_KnownInput_MatchesTheKnownDigest()

    Sha256Hex_NullBytes_ReturnsEmpty()

    Declaration
    public void Sha256Hex_NullBytes_ReturnsEmpty()

    Sha256Hex_SameBytes_ProducesTheSameDigest()

    Declaration
    public void Sha256Hex_SameBytes_ProducesTheSameDigest()
    In this article
    © 2026 Serenity. All Rights Reserved