예제 #1
0
        public void IsRequiredTest_WithValue()
        {
            var isReq  = new IsRequired();
            var result = isReq.IsValid("This has a value", "Temp");

            Assert.IsTrue(result);
        }
예제 #2
0
        public void IsRequiredTest_Empty()
        {
            var isReq  = new IsRequired();
            var result = isReq.IsValid("", "Temp");

            Assert.IsFalse(result);
        }