src/GenFx.Wpf.Tests/NullToVisibilityConverter.cs
/// <summary>
/// Tests that the <see cref="NullToVisibilityConverter.Convert"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void NullToVisibilityConverter_Convert()
        {
            NullToVisibilityConverter converter = new NullToVisibilityConverter
            {
                ValueForNonNull = Visibility.Collapsed,
                ValueForNull = Visibility.Hidden
            };
            object result = converter.Convert(null, null, null, null);
            Assert.Equal(Visibility.Hidden, result);
            result = converter.Convert(new object(), null, null, null);
            Assert.Equal(Visibility.Collapsed, result);
        }
[ Fact ] public void NullToVisibilityConverter_Convert ( ) { NullToVisibilityConverter converter = new NullToVisibilityConverter { ValueForNonNull = Visibility . Collapsed , ValueForNull = Visibility . Hidden } ; object result = converter . Convert ( null , null , null , null ) ; Assert . Equal ( Visibility . Hidden , result ) ; result = converter . Convert ( new object ( ) , null , null , null ) ; Assert . Equal ( Visibility . Collapsed , result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .