public void TestConvert() { IBindingValueConverter converter = new InverseBooleanValueConverter(); converter.Convert(true, typeof(bool), null, null, null).ShouldEqual(false); converter.Convert(false, typeof(bool), null, null, null).ShouldEqual(true); }
public void TestConvertNotBool() { IBindingValueConverter converter = new InverseBooleanValueConverter(); Action action = () => converter.Convert(new object(), typeof(object), null, null, null); action.ShouldThrow(); }
public void TestConvertNotBool() { IBindingValueConverter converter = new InverseBooleanValueConverter(); Action action = () => converter.Convert(new object(), typeof (object), null, null, null); action.ShouldThrow(); }