示例#1
0
        public void ReferenceRule01PassesValidReferences()
        {
            var model = new SupplementaryDataModel
            {
                Reference = @"Aa0 .,;:~!”@#$&’()/+-<=>[]{}^£€"
            };

            var rule = new ReferenceRule01();

            Assert.True(rule.Execute(model));
        }
示例#2
0
        public void ReferenceRule01CatchesRegexViolations()
        {
            var invalidCharacters = "|~?";

            var model = new SupplementaryDataModel
            {
                Reference = invalidCharacters
            };

            var rule = new ReferenceRule01();

            Assert.False(rule.Execute(model));
        }