src/GenFx.Tests/RequiredGeneticAlgorithmAttributeTest.cs
/// <summary>
/// Tests that the constructor initializes the state correctly.
/// </summary>
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .
[Fact]
        public void RequiredGeneticAlgorithmAttribute_Ctor()
        {
            RequiredGeneticAlgorithmAttribute attrib = new RequiredGeneticAlgorithmAttribute(typeof(MockGeneticAlgorithm));
            Assert.Equal(typeof(MockGeneticAlgorithm), attrib.RequiredType);
            Assert.IsType<RequiredGeneticAlgorithmValidator>(attrib.Validator);
        }
[ Fact ] public void RequiredGeneticAlgorithmAttribute_Ctor ( ) { RequiredGeneticAlgorithmAttribute attrib = new RequiredGeneticAlgorithmAttribute ( typeof ( MockGeneticAlgorithm ) ) ; Assert . Equal ( typeof ( MockGeneticAlgorithm ) , attrib . RequiredType ) ; Assert . IsType < RequiredGeneticAlgorithmValidator > ( attrib . Validator ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .