src/GenFx.Wpf.Tests/BooleanToDoubleConverterTest.cs
/// <summary>
/// Tests that the <see cref="BooleanToDoubleConverter.Convert"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void BooleanToDoubleConverter_Convert()
        {
            BooleanToDoubleConverter converter = new BooleanToDoubleConverter
            {
                ValueForFalse = 2,
                ValueForTrue = 3
            };
            object result = converter.Convert(true, null, null, null);
            Assert.Equal((double)3, result);
            result = converter.Convert(false, null, null, null);
            Assert.Equal((double)2, result);
            result = converter.Convert(null, null, null, null);
            Assert.Null(result);
        }
[ Fact ] public void BooleanToDoubleConverter_Convert ( ) { BooleanToDoubleConverter converter = new BooleanToDoubleConverter { ValueForFalse = 2 , ValueForTrue = 3 } ; object result = converter . Convert ( true , null , null , null ) ; Assert . Equal ( ( double ) 3 , result ) ; result = converter . Convert ( false , null , null , null ) ; Assert . Equal ( ( double ) 2 , result ) ; result = converter . Convert ( null , null , null , null ) ; Assert . Null ( result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .