コード例 #1
0
 public void BoolToVisibilityConverterReverse_TrueReturnsHidden()
 {
     BoolToVisibilityConverterReverse c = new BoolToVisibilityConverterReverse();
     var res = c.Convert(true, typeof(Visibility), null, null);
     Assert.IsTrue((Visibility)res == Visibility.Hidden, "Should have been 'Hidden'");
 }
コード例 #2
0
 public void BoolToVisibilityConverterReverse_FalseReturnsVisible()
 {
     BoolToVisibilityConverterReverse c = new BoolToVisibilityConverterReverse();
     var res = c.Convert(false, typeof(Visibility), null, null);
     Assert.IsTrue((Visibility)res == Visibility.Visible, "Should have been 'Visible'");
 }