Exemple #1
0
        public void IsNotNullShouldNotRaiseExceptionIfNotNull()
        {
            object foo    = new object();
            var    result = AssertArg.IsNotNull(foo, nameof(foo));

            Assert.AreEqual(foo, result);
        }
Exemple #2
0
        public void IsNotNullShouldRaiseExceptionIfNull()
        {
            object foo = null;

            AssertArg.IsNotNull(foo, nameof(IsNotNullShouldRaiseExceptionIfNull));
        }