Ejemplo n.º 1
0
            public void GivenNull_ReturnsError()
            {
                var result = Law.CreateNotNull <object>("subjectName", null).Evaluate();

                Assert.False(result.IsSuccess());
                Assert.Equal("'subjectName' should not be null.", result.GetError());
            }
Ejemplo n.º 2
0
            public void GivenObject_ReturnsSuccess()
            {
                var result = Law.CreateNotNull(string.Empty, new object()).Evaluate();

                Assert.True(result.IsSuccess());
            }