src/GenFx.Components.Tests/PopulationReplacementValueTest.cs
/// <summary>
/// Tests that the <see cref="PopulationReplacementValue.GetHashCode"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void PopulationReplacementValue_GetHashCode()
        {
            PopulationReplacementValue val1 = new PopulationReplacementValue(2, ReplacementValueKind.FixedCount);
            PopulationReplacementValue val2 = new PopulationReplacementValue(2, ReplacementValueKind.FixedCount);
            PopulationReplacementValue val3 = new PopulationReplacementValue(3, ReplacementValueKind.FixedCount);
            Assert.Equal(val1.GetHashCode(), val2.GetHashCode());
            Assert.NotEqual(val1.GetHashCode(), val3.GetHashCode());
        }
[ Fact ] public void PopulationReplacementValue_GetHashCode ( ) { PopulationReplacementValue val1 = new PopulationReplacementValue ( 2 , ReplacementValueKind . FixedCount ) ; PopulationReplacementValue val2 = new PopulationReplacementValue ( 2 , ReplacementValueKind . FixedCount ) ; PopulationReplacementValue val3 = new PopulationReplacementValue ( 3 , ReplacementValueKind . FixedCount ) ; Assert . Equal ( val1 . GetHashCode ( ) , val2 . GetHashCode ( ) ) ; Assert . NotEqual ( val1 . GetHashCode ( ) , val3 . GetHashCode ( ) ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .