示例#1
0
 public void CannotCallAssertIsInstanceOfWithNullValue(ITestFramework testClass)
 {
     Assert.Throws <ArgumentNullException>(() => testClass.AssertIsInstanceOf(default(ExpressionSyntax), SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword))));
 }
示例#2
0
 public void CannotCallAssertIsInstanceOfWithNullType(ITestFramework testClass)
 {
     Assert.Throws <ArgumentNullException>(() => testClass.AssertIsInstanceOf(Generate.Literal(1), default(TypeSyntax)));
 }