public void TryConvertElementShouldConvertIntToNullableInt()
 {
     var testCreator = new TestCreator();
     object result;
     Assert.IsTrue(testCreator.TestTryConvertElement(typeof(int?), 1, out result));
     Assert.AreEqual(1, result);
 }
 public void TryConvertElementShouldConvertIntToEnum()
 {
     var testCreator = new TestCreator();
     object result;
     Assert.IsTrue(testCreator.TestTryConvertElement(typeof(TestEnum), 1, out result));
     Assert.AreEqual(TestEnum.Value, result);
 }
예제 #3
0
        public void TryConvertElementShouldConvertIntToNullableInt()
        {
            var    testCreator = new TestCreator();
            object result;

            Assert.IsTrue(testCreator.TestTryConvertElement(typeof(int?), 1, out result));
            Assert.AreEqual(1, result);
        }
예제 #4
0
        public void TryConvertElementShouldConvertIntToEnum()
        {
            var    testCreator = new TestCreator();
            object result;

            Assert.IsTrue(testCreator.TestTryConvertElement(typeof(TestEnum), 1, out result));
            Assert.AreEqual(TestEnum.Value, result);
        }