public void Convert_BooleanTrue_ExpectWhenTrueValue() { var c = new BooleanToStringConverter(); Assert.AreEqual("True", c.Convert(true, typeof(bool), null, null)); }
public void Convert_BooleanFalse_ExpectWhenFalseValue() { var c = new BooleanToStringConverter(); Assert.AreEqual("False", c.Convert(false, typeof(bool), null, null)); }
public void Convert_NonBooleanToString_ExpectNull() { var c = new BooleanToStringConverter(); Assert.AreEqual(DependencyProperty.UnsetValue, c.Convert("NotBoolean", typeof(string), null, null)); }