/// <summary> /// Asserts that an object is not null. If the object is null, the assertion fails. /// </summary> public static void AssertNotNull(object assertion) { try { _testFramework.AssertNotNull(assertion); } catch (Exception ex) { throw new AssertionException(ex.Message); } }
public void CannotCallAssertNotNullWithNullValue(ITestFramework testClass) { Assert.Throws <ArgumentNullException>(() => testClass.AssertNotNull(default(ExpressionSyntax))); }