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).
Inherited Members
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()