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); }