public void TestBooleanInverter() { var converter = new BooleanInverter(); Assert.AreEqual(false, converter.Convert(true, null, null, null)); Assert.AreEqual(true, converter.Convert(false, null, null, null)); Assert.AreEqual(true, converter.ConvertBack(false, null, null, null)); Assert.AreEqual(false, converter.ConvertBack(true, null, null, null)); }
public void ConvertTest() { var target = new BooleanInverter(); var result = (bool)target.Convert(true, null, null, null); Assert.IsFalse(result); }