src/GenFx.Components.Tests/PopulationReplacementValueTest.cs
/// <summary>
/// Tests that the <see cref="PopulationReplacementValue.Equals"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void PopulationReplacementValue_Equals()
        {
            PopulationReplacementValue val1 = new PopulationReplacementValue(2, ReplacementValueKind.FixedCount);
            PopulationReplacementValue val2 = new PopulationReplacementValue(2, ReplacementValueKind.Percentage);
            PopulationReplacementValue val3 = new PopulationReplacementValue(3, ReplacementValueKind.Percentage);
            PopulationReplacementValue val4 = new PopulationReplacementValue(2, ReplacementValueKind.FixedCount);
            PopulationReplacementValue val5 = new PopulationReplacementValue(3, ReplacementValueKind.Percentage);
            Assert.False(val1.Equals(val2));
            Assert.False(val1 == val2);
            Assert.True(val1 != val2);
            Assert.False(val1.Equals(val3));
            Assert.False(val1 == val3);
            Assert.True(val1 != val3);
            Assert.True(val1.Equals(val4));
            Assert.True(val1 == val4);
            Assert.False(val1 != val4);
            Assert.False(val3.Equals(val2));
            Assert.False(val3 == val2);
            Assert.True(val3 != val2);
            Assert.True(val3.Equals(val5));
            Assert.True(val3 == val5);
            Assert.False(val3 != val5);
            Assert.False(val1.Equals(null));
            Assert.False(val1 == null);
            Assert.True(val1 != null);
            Assert.False(val1.Equals("test"));
        }
[ Fact ] public void PopulationReplacementValue_Equals ( ) { PopulationReplacementValue val1 = new PopulationReplacementValue ( 2 , ReplacementValueKind . FixedCount ) ; PopulationReplacementValue val2 = new PopulationReplacementValue ( 2 , ReplacementValueKind . Percentage ) ; PopulationReplacementValue val3 = new PopulationReplacementValue ( 3 , ReplacementValueKind . Percentage ) ; PopulationReplacementValue val4 = new PopulationReplacementValue ( 2 , ReplacementValueKind . FixedCount ) ; PopulationReplacementValue val5 = new PopulationReplacementValue ( 3 , ReplacementValueKind . Percentage ) ; Assert . False ( val1 . Equals ( val2 ) ) ; Assert . False ( val1 == val2 ) ; Assert . True ( val1 != val2 ) ; Assert . False ( val1 . Equals ( val3 ) ) ; Assert . False ( val1 == val3 ) ; Assert . True ( val1 != val3 ) ; Assert . True ( val1 . Equals ( val4 ) ) ; Assert . True ( val1 == val4 ) ; Assert . False ( val1 != val4 ) ; Assert . False ( val3 . Equals ( val2 ) ) ; Assert . False ( val3 == val2 ) ; Assert . True ( val3 != val2 ) ; Assert . True ( val3 . Equals ( val5 ) ) ; Assert . True ( val3 == val5 ) ; Assert . False ( val3 != val5 ) ; Assert . False ( val1 . Equals ( null ) ) ; Assert . False ( val1 == null ) ; Assert . True ( val1 != null ) ; Assert . False ( val1 . Equals ( " " ) ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .