public void ConvertTest001_IsNotNull() { Visibility expected = Visibility.Visible; object param = null; ObjectToVisibilty converter = new ObjectToVisibilty(); object result = converter.Convert( new object(), null, param, CultureInfo.CurrentCulture); Assert.AreEqual(expected, result); }
public void ConvertTest004_IsNOTNullReversed() { Visibility expected = Visibility.Collapsed; object param = "NOT"; object valueToCOnvert = new object(); ObjectToVisibilty converter = new ObjectToVisibilty(); object result = converter.Convert( valueToCOnvert, null, param, CultureInfo.CurrentCulture); Assert.AreEqual(expected, result); }