public void True_False_Array_Converts_To_Collapsed() { var conv = new MultiBoolVisibleConverter(); var result = conv.Convert(new object[] { true, false }, typeof(Visibility), null, CultureInfo.CurrentCulture); Assert.AreEqual(Visibility.Collapsed, result); }
public void True_Array_With_Not_Param_Converts_To_Collapsed() { var conv = new MultiBoolVisibleConverter(); var result = conv.Convert(new object[] { true, true }, typeof(Visibility), "not", CultureInfo.CurrentCulture); Assert.AreEqual(Visibility.Collapsed, result); }
public void Null_With_Not_Param_Converts_To_Visible() { var conv = new MultiBoolVisibleConverter(); var result = conv.Convert(null, typeof(Visibility), "not", CultureInfo.CurrentCulture); Assert.AreEqual(Visibility.Visible, result); }
public void False_Array_With_Not_Param_Converts_To_Visible() { var conv = new MultiBoolVisibleConverter(); var result = conv.Convert(new object[] { false, false }, typeof(Visibility), "not", CultureInfo.CurrentCulture); Assert.AreEqual(Visibility.Visible, result); }
public void Null_Converts_To_Collapsed() { var conv = new MultiBoolVisibleConverter(); var result = conv.Convert(null, typeof(Visibility), null, CultureInfo.CurrentCulture); Assert.AreEqual(Visibility.Collapsed, result); }