public void Test_Safe() { PrivateDisposableTestEntity entity = null; var result = entity.Safe(x => x.Id); Assert.IsTrue(result == 0); }
public void Test_Is_WithSafeNull() { PrivateDisposableTestEntity entity = null; bool isIDMatched = false; if (Fx.Is(() => entity.Id == 900)) { isIDMatched = true; } Assert.IsFalse(isIDMatched); }