예제 #1
0
        public void Test_Safe()
        {
            PrivateDisposableTestEntity entity = null;
            var result = entity.Safe(x => x.Id);

            Assert.IsTrue(result == 0);
        }
예제 #2
0
        public void Test_Is_WithSafeNull()
        {
            PrivateDisposableTestEntity entity = null;
            bool isIDMatched = false;

            if (Fx.Is(() => entity.Id == 900))
            {
                isIDMatched = true;
            }

            Assert.IsFalse(isIDMatched);
        }