Пример #1
0
        public void TestConvertBack()
        {
            IBindingValueConverter converter = new InverseBooleanValueConverter();

            converter.ConvertBack(false, typeof(bool), null, null, null).ShouldEqual(true);
            converter.ConvertBack(true, typeof(bool), null, null, null).ShouldEqual(false);
        }
Пример #2
0
        public void TestConvertBackNotBool()
        {
            IBindingValueConverter converter = new InverseBooleanValueConverter();
            Action action = () => converter.ConvertBack(new object(), typeof(object), null, null, null);

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