public void NotCareIfClassValuesChanged() { var testInstance = new TestClass { Value = "stuff" }; AssertAll.IsNotNull(testInstance); AssertAll.IsNotNull(testInstance?.Value); testInstance = null; }
public void FailWhenNotNull() { AssertAll.IsNotNull(null); Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute()); }
public void PassWhenNull() { AssertAll.IsNotNull(1); AssertAll.Execute(); }