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