public void ConvertTest002_False() { bool value = false; object param = null; Visibility expected = Visibility.Collapsed; BoolToVisibilty converter = new BoolToVisibilty(); object result = converter.Convert( value, null, param, CultureInfo.CurrentCulture); Assert.AreEqual(expected, result); }
public void ConvertTest005_NOTTrueToCollapsed() { bool value = true; object param = "NOT-collapsed"; Visibility expected = Visibility.Collapsed; BoolToVisibilty converter = new BoolToVisibilty(); object result = converter.Convert( value, null, param, CultureInfo.CurrentCulture); Assert.AreEqual(expected, result); }
public void ConvertTest006_NOTFalseToCollapsed() { bool value = false; object param = "NOT-rr-ss-collapsed-ss-"; Visibility expected = Visibility.Visible; BoolToVisibilty converter = new BoolToVisibilty(); object result = converter.Convert( value, null, param, CultureInfo.CurrentCulture); Assert.AreEqual(expected, result); }