public void IfNullAndNullsAreIllegalThenThrow_WithExpression_ShouldThrow() { var tester = new ThrowTester<int>(); var il = (IList) tester; Assert.Throws<ArgumentNullException>(() => il.Add(null)); }
public void IfNullAndNullsAreIllegalThenThrow_ShouldThrow() { var tester = new ThrowTester<int>(); Assert.Throws<ArgumentNullException>(() => tester.Test_Name(null)); }
public void IfNullAndNullsAreIllegalThenThrow_WithExpression_OK() { var tester = new ThrowTester<string>(); var il = (IList) tester; Assert.DoesNotThrow(() => il.Add(null)); }
public void IfNullAndNullsAreIllegalThenThrow_OK() { var tester = new ThrowTester<string>(); Assert.DoesNotThrow(() => tester.Test_Name(null)); }