public void GetHashCodeIsStableAcrossInstances()
        {
            // Arrange
            var sut = new OmitSpecimen();
            // Act
            var actual = sut.GetHashCode();
            // Assert
            var expected = new OmitSpecimen().GetHashCode();

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void GetHashCodeIsStableAcrossInstances()
        {
            // Fixture setup
            var sut = new OmitSpecimen();
            // Exercise system
            var actual = sut.GetHashCode();
            // Verify outcome
            var expected = new OmitSpecimen().GetHashCode();

            Assert.Equal(expected, actual);
            // Teardown
        }