public void HashCode_Compute() { HashToolFixture.Entity entity = null; HashTool.Compute(entity).Should().Be(0); entity = new HashToolFixture.Entity(Guid.NewGuid(), "abc"); HashTool.Compute(entity).Should().Not.Be.EqualTo(0).And.Be(entity.GetHashCode()); }
public void HashCode_Compute() { HashToolFixture.Entity entity = null; HashTool.Compute(entity).Should().Be(0); entity = new HashToolFixture.Entity(Guid.NewGuid(), "abc"); HashTool.Compute(entity).Should().Not.Be.EqualTo(0).And.Be(entity.GetHashCode()); }