示例#1
0
 public void IsNull_ExpressionIsNull_ShouldThrowArgumentNullException()
 {
     Assert.ThrowsException <ArgumentNullException>(
         () =>
     {
         Asserter.IsNull(default(Expression <Func <object> >));
     });
 }
示例#2
0
        public void IsNull_ConditionIsNotNull_ShouldThrowAssertFailedException()
        {
            var o = new TestObject();

            Assert.ThrowsException <AssertFailedException>(
                () =>
            {
                Asserter.IsNull(() => o);
            });
        }
示例#3
0
        public void IsNull_ConditionIsNull_ShouldNotThrowAssertFailedException()
        {
            var o = default(TestObject);

            ExceptionAsserter.DoesNotThrowException <AssertFailedException>(
                () =>
            {
                Asserter.IsNull(() => o);
            });
        }