public void IsNull_ExpressionIsNull_ShouldThrowArgumentNullException() { Assert.ThrowsException <ArgumentNullException>( () => { Asserter.IsNull(default(Expression <Func <object> >)); }); }
public void IsNull_ConditionIsNotNull_ShouldThrowAssertFailedException() { var o = new TestObject(); Assert.ThrowsException <AssertFailedException>( () => { Asserter.IsNull(() => o); }); }
public void IsNull_ConditionIsNull_ShouldNotThrowAssertFailedException() { var o = default(TestObject); ExceptionAsserter.DoesNotThrowException <AssertFailedException>( () => { Asserter.IsNull(() => o); }); }