コード例 #1
0
 public void TextConvert_ReturnVisisable_IfValueIsTrue()
 {
     var converter = new BoolToVisibilityConverter();
     var result = converter.Convert(true, typeof(Visibility), null, null);
     Assert.AreEqual(Visibility.Visible, result);
 }
コード例 #2
0
 public void TextConvert_ReturnCollapsed_IfValueIsFalse()
 {
     var converter = new BoolToVisibilityConverter();
     var result = converter.Convert(false, typeof(Visibility), null, null);
     Assert.AreEqual(Visibility.Collapsed, result);
 }