コード例 #1
0
 public void ConvertFalseTest()
 {
     var converter = new BooleanToVisibilityConverter();
     var result = converter.Convert(false, typeof(Visibility), null, null);
     Assert.AreEqual(Visibility.Collapsed, result);
 }
コード例 #2
0
 public void ConvertTrueTest()
 {
     var converter = new BooleanToVisibilityConverter();
     var result = converter.Convert(true, typeof(Visibility), null, null);
     Assert.AreEqual(Visibility.Visible, result);
 }
コード例 #3
0
 public void ConvertBackCollapsedTest()
 {
     var converter = new BooleanToVisibilityConverter();
     var result = converter.ConvertBack(Visibility.Collapsed, typeof(bool), null, null);
     Assert.AreEqual(false, result);
 }