예제 #1
0
        public void IsValid_CorrectSourcePassed_ReturnsTrue()
        {
            var    validator     = new SimpleUpdateSourceValidator();
            string correctSource = "Correct Source";

            Assert.IsTrue(validator.IsValid(correctSource));
        }
예제 #2
0
        public void IsValid_NullSourcePassed_ReturnsFalse()
        {
            var    validator  = new SimpleUpdateSourceValidator();
            string nullSource = null;

            Assert.IsFalse(validator.IsValid(nullSource));
        }
예제 #3
0
        public void IsValid_EmptySourcePassed_ReturnsFalse()
        {
            var    validator   = new SimpleUpdateSourceValidator();
            string emptySource = string.Empty;

            Assert.IsFalse(validator.IsValid(emptySource));
        }