public void assert_generic_argument_not_null_does_not_throw_if_given_a_value_type()
 {
     ArgumentHelper.AssertGenericArgumentNotNull(1, "test");
     ArgumentHelper.AssertGenericArgumentNotNull(1.37D, "test");
     ArgumentHelper.AssertGenericArgumentNotNull(TimeSpan.Zero, "test");
     ArgumentHelper.AssertGenericArgumentNotNull(DateTime.Now, "test");
 }
 public static void AssertGenericArgumentNotNull <T>(this T arg, string argName)
 {
     ArgumentHelper.AssertGenericArgumentNotNull(arg, argName);
 }
 public void assert_generic_argument_not_null_does_not_throw_if_reference_is_not_null()
 {
     ArgumentHelper.AssertGenericArgumentNotNull("test", "test");
 }
 public void assert_generic_argument_not_null_throws_if_interface_is_null()
 {
     Assert.Throws <ArgumentNullException>(() => ArgumentHelper.AssertGenericArgumentNotNull <IComparable>(null, "test"));
 }
 public void assert_generic_argument_not_null_throws_if_reference_is_null()
 {
     Assert.Throws <ArgumentNullException>(() => ArgumentHelper.AssertGenericArgumentNotNull <string>(null, "test"));
 }
 public void assert_generic_argument_not_null_does_not_throw_if_nullable_has_a_value()
 {
     ArgumentHelper.AssertGenericArgumentNotNull((int?)13, "test");
 }
 public void assert_generic_argument_not_null_throws_if_nullable_has_no_value()
 {
     Assert.Throws <ArgumentNullException>(() => ArgumentHelper.AssertGenericArgumentNotNull((int?)null, "test"));
 }
 public void assert_generic_argument_not_null_does_not_throw_if_interface_is_not_null()
 {
     ArgumentHelper.AssertGenericArgumentNotNull((IComparable)"test", "test");
 }