Esempio n. 1
0
 public void TestStringIsNullable()
 {
     Assert.IsTrue(NullableUtils.IsNullable(typeof(string)));
 }
Esempio n. 2
0
 public void TestNullableStructIsNullable()
 {
     Assert.IsTrue(NullableUtils.IsNullable(typeof(TestStruct?)));
 }
Esempio n. 3
0
 public void TestNullableIntIsNullable()
 {
     Assert.IsTrue(NullableUtils.IsNullable(typeof(int?)));
 }
Esempio n. 4
0
 public void TestStructIsNullable()
 {
     Assert.IsFalse(NullableUtils.IsNullable(typeof(TestStruct)));
 }
Esempio n. 5
0
 public void TestIntIsNullable()
 {
     Assert.IsFalse(NullableUtils.IsNullable(typeof(int)));
 }