public void ConvertBack() { var converter = new ReferenceToCollapsingVisibilityConverter(); Assert.AreEqual(ConverterHelper.DoNothingBindingValue, converter.ConvertBack(null, typeof (object), null, (CultureInfo)null)); }
public void Convert_ReferenceType_ParameterFalse() { var converter = new ReferenceToCollapsingVisibilityConverter(); Assert.AreEqual(Visibility.Visible, converter.Convert(new object(), typeof (Visibility), false, (CultureInfo)null)); }
public void Convert_ValueType() { var converter = new ReferenceToCollapsingVisibilityConverter(); Assert.AreEqual(Visibility.Visible, converter.Convert(1, typeof (Visibility), null, (CultureInfo)null)); }
public void Convert_ValueType_ParameterTrue() { var converter = new ReferenceToCollapsingVisibilityConverter(); Assert.AreEqual(Visibility.Collapsed, converter.Convert(1, typeof (Visibility), true, (CultureInfo)null)); }
public void Convert_Null_ParameterFalse() { var converter = new ReferenceToCollapsingVisibilityConverter(); Assert.AreEqual(Visibility.Collapsed, converter.Convert(null, typeof (Visibility), false, (CultureInfo)null)); }