コード例 #1
0
        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));
        }
コード例 #2
0
        public void ConvertTest()
        {
            var target = new BooleanInverter();

            var result = (bool)target.Convert(true, null, null, null);

            Assert.IsFalse(result);
        }