예제 #1
0
 public void IfNullAndNullsAreIllegalThenThrow_WithExpression_ShouldThrow()
 {
     var tester = new ThrowTester<int>();
     var il = (IList) tester;
     Assert.Throws<ArgumentNullException>(() => il.Add(null));
 }
예제 #2
0
 public void IfNullAndNullsAreIllegalThenThrow_ShouldThrow()
 {
     var tester = new ThrowTester<int>();
     Assert.Throws<ArgumentNullException>(() => tester.Test_Name(null));
 }
예제 #3
0
 public void IfNullAndNullsAreIllegalThenThrow_WithExpression_OK()
 {
     var tester = new ThrowTester<string>();
     var il = (IList) tester;
     Assert.DoesNotThrow(() => il.Add(null));
 }
예제 #4
0
 public void IfNullAndNullsAreIllegalThenThrow_OK()
 {
     var tester = new ThrowTester<string>();
     Assert.DoesNotThrow(() => tester.Test_Name(null));
 }