Skip to content

Commit

Permalink
Boy scout: improved coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Feb 10, 2024
1 parent b304cb1 commit 2cb4ac1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specs/Qowaiv.Specs/Hashing/Hash_specs.cs
Expand Up @@ -69,6 +69,7 @@ public void GetHashCode_is_not_supported()
call.Should().Throw<HashingNotSupported>();
}
}

public class Get_hash_code_with_fixed_randomizer
{
[Test]
Expand Down Expand Up @@ -188,3 +189,16 @@ public void not_equal_to_different_value()
public void equal_to_same_value()
=> Svo.Hash.Equals(Hash.Code("QOWAIV")).Should().BeTrue();
}

public class To_string
{
[Test]
public void displays_the_hash()
{
using (Hash.WithoutRandomizer())
{
var hash = Hash.Code(12);
hash.ToString().Should().Be("12");
}
}
}

0 comments on commit 2cb4ac1

Please sign in to comment.