コード例 #1
0
 public void ConvertBack()
 {
     var converter = new ReferenceToCollapsingVisibilityConverter();
     Assert.AreEqual(ConverterHelper.DoNothingBindingValue, converter.ConvertBack(null, typeof (object), null, (CultureInfo)null));
 }
コード例 #2
0
 public void Convert_ReferenceType_ParameterFalse()
 {
     var converter = new ReferenceToCollapsingVisibilityConverter();
     Assert.AreEqual(Visibility.Visible, converter.Convert(new object(), typeof (Visibility), false, (CultureInfo)null));
 }
コード例 #3
0
 public void Convert_ValueType()
 {
     var converter = new ReferenceToCollapsingVisibilityConverter();
     Assert.AreEqual(Visibility.Visible, converter.Convert(1, typeof (Visibility), null, (CultureInfo)null));
 }
コード例 #4
0
 public void Convert_ValueType_ParameterTrue()
 {
     var converter = new ReferenceToCollapsingVisibilityConverter();
     Assert.AreEqual(Visibility.Collapsed, converter.Convert(1, typeof (Visibility), true, (CultureInfo)null));
 }
コード例 #5
0
 public void Convert_Null_ParameterFalse()
 {
     var converter = new ReferenceToCollapsingVisibilityConverter();
     Assert.AreEqual(Visibility.Collapsed, converter.Convert(null, typeof (Visibility), false, (CultureInfo)null));
 }