Ejemplo n.º 1
0
 public void GetNullableType_ReferenceType()
 {
     Assert.That(NullableTypeUtility.GetNullableType(typeof(string)), Is.EqualTo(typeof(string)));
 }
Ejemplo n.º 2
0
 public void GetNullableType_WithNull_ThrowsArgumentNullException()
 {
     Assert.That(
         () => NullableTypeUtility.GetNullableType(null),
         Throws.TypeOf <ArgumentNullException>().With.Message.EndsWith("Parameter name: type"));
 }
Ejemplo n.º 3
0
 public void GetNullableType_NullableValueType()
 {
     Assert.That(NullableTypeUtility.GetNullableType(typeof(int?)), Is.EqualTo(typeof(int?)));
 }