src/GenFx.Wpf.Tests/NullToBooleanConverterTest.cs
/// <summary>
/// Tests that the <see cref="NullToBooleanConverter.Convert"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void NullToBooleanConverter_Convert()
        {
            NullToBooleanConverter converter = new NullToBooleanConverter();
            converter.ValueForNull = true;
            object result = converter.Convert(null, null, null, null);
            Assert.True((bool)result);
            result = converter.Convert(new object(), null, null, null);
            Assert.False((bool)result);
            converter.ValueForNull = false;
            result = converter.Convert(null, null, null, null);
            Assert.False((bool)result);
            result = converter.Convert(new object(), null, null, null);
            Assert.True((bool)result);
        }
[ Fact ] public void NullToBooleanConverter_Convert ( ) { NullToBooleanConverter converter = new NullToBooleanConverter ( ) ; converter . ValueForNull = true ; object result = converter . Convert ( null , null , null , null ) ; Assert . True ( ( bool ) result ) ; result = converter . Convert ( new object ( ) , null , null , null ) ; Assert . False ( ( bool ) result ) ; converter . ValueForNull = false ; result = converter . Convert ( null , null , null , null ) ; Assert . False ( ( bool ) result ) ; result = converter . Convert ( new object ( ) , null , null , null ) ; Assert . True ( ( bool ) result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .