示例#1
0
        public void IsNotEmpty_WhenItsNull()
        {
            rules.MakeSure("sp").IsNotEmpty();

            rules.Check("sp", null);

            Assert.IsTrue(rules.AnyError());
            Assert.AreEqual(Rules.EMPTY_ERROR, rules.GetErrors("sp").First());
        }