src/GenFx.Components.Tests/PopulationReplacementValueValidatorTest.cs
/// <summary>
/// Tests that the <see cref="PopulationReplacementValueValidator.IsValid"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void PopulationReplacementValueValidator_IsValid()
        {
            PopulationReplacementValue val = new PopulationReplacementValue(100, ReplacementValueKind.FixedCount);
            this.TestValidator(val, true);
            val = new PopulationReplacementValue(100, ReplacementValueKind.Percentage);
            this.TestValidator(val, true);
            val = new PopulationReplacementValue(101, ReplacementValueKind.Percentage);
            this.TestValidator(val, false);
            this.TestValidator("test", false);
            this.TestValidator(1, false);
        }
[ Fact ] public void PopulationReplacementValueValidator_IsValid ( ) { PopulationReplacementValue val = new PopulationReplacementValue ( 100 , ReplacementValueKind . FixedCount ) ; this . TestValidator ( val , true ) ; val = new PopulationReplacementValue ( 100 , ReplacementValueKind . Percentage ) ; this . TestValidator ( val , true ) ; val = new PopulationReplacementValue ( 101 , ReplacementValueKind . Percentage ) ; this . TestValidator ( val , false ) ; this . TestValidator ( " " , false ) ; this . TestValidator ( 1 , false ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .