예제 #1
0
        public void ShouldBeAnInvalidFile(string fileKey)
        {
            var attr = new FileKeyRuleAttribute();

            Assert.IsFalse(attr.IsValid(fileKey));
        }
예제 #2
0
        public void ShouldBeAnInValidFileKey(string fileKey, bool required)
        {
            var attr = new FileKeyRuleAttribute(required);

            Assert.IsFalse(attr.IsValid(fileKey));
        }