public void ConvertBackTest()
        {
            var converter = new BoolToVisibilityConverter();

            var actual = converter.ConvertBack(Visibility.Collapsed, null, null, CultureInfo.InvariantCulture);

            Assert.IsFalse((bool)actual);

            actual = converter.ConvertBack(Visibility.Visible, null, null, CultureInfo.InvariantCulture);

            Assert.IsTrue((bool)actual);
        }
        public void ConvertTest()
        {
            var converter = new BoolToVisibilityConverter();

            var actual = converter.Convert(false, null, null, CultureInfo.InvariantCulture);

            Assert.AreEqual(Visibility.Collapsed, actual);

            actual = converter.Convert(true, null, null, CultureInfo.InvariantCulture);

            Assert.AreEqual(Visibility.Visible, actual);

            actual = converter.Convert(null, null, null, CultureInfo.InvariantCulture);
            
            Assert.AreEqual(Visibility.Collapsed, actual);
        }
 public void PropertiesTest()
 {
     var classUnderTest = new BoolToVisibilityConverter();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(classUnderTest, false);
 }