示例#1
0
        public void NotCareIfClassValuesChanged()
        {
            var testInstance = new TestClass {
                Value = "stuff"
            };

            AssertAll.IsNotNull(testInstance);
            AssertAll.IsNotNull(testInstance?.Value);
            testInstance = null;
        }
示例#2
0
        public void FailWhenNotNull()
        {
            AssertAll.IsNotNull(null);

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }
示例#3
0
 public void PassWhenNull()
 {
     AssertAll.IsNotNull(1);
     AssertAll.Execute();
 }