src/GenFx.Components.Tests/BooleanValidatorAttributeTest.cs
/// <summary>
/// Tests that the ctor initializes the state correctly.
/// </summary>
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .
[Fact]
        public void BooleanValidatorAttribute_Ctor()
        {
            BooleanValidatorAttribute attrib = new BooleanValidatorAttribute(true);
            Assert.True(attrib.RequiredValue);
            Assert.True(((BooleanValidator)attrib.Validator).RequiredValue);
            attrib = new BooleanValidatorAttribute(false);
            Assert.False(attrib.RequiredValue);
            Assert.False(((BooleanValidator)attrib.Validator).RequiredValue);
        }
[ Fact ] public void BooleanValidatorAttribute_Ctor ( ) { BooleanValidatorAttribute attrib = new BooleanValidatorAttribute ( true ) ; Assert . True ( attrib . RequiredValue ) ; Assert . True ( ( ( BooleanValidator ) attrib . Validator ) . RequiredValue ) ; attrib = new BooleanValidatorAttribute ( false ) ; Assert . False ( attrib . RequiredValue ) ; Assert . False ( ( ( BooleanValidator ) attrib . Validator ) . RequiredValue ) ; }
Tests that the ctor initializes the state correctly.
Tests that the ctor initializes the state correctly .