public void Setup() { _fileAccess = new Mock <IFileAccess <string> >(); _scriptCheck = new ScriptCheck(_fileAccess.Object, _settings); _rules = new List <Rule>() { new Rule() { ScriptIdentifier = new List <string>() { "tblPage" }, ShouldNotContain = new List <string>() }, new Rule() { ScriptIdentifier = new List <string>() { "tblTest", "tblPage" }, ShouldNotContain = new List <string>() }, new Rule() { ScriptIdentifier = new List <string>() { "tblCustomer" }, ShouldNotContain = null }, new Rule() { ScriptIdentifier = new List <string>() { "tblPage" }, ShouldNotContain = new List <string>() { "PROCEDURE" } } }; }
public void AddValidationPattern(string pattern, ScriptCheck shouldIssue) { _patterns.Add( new Pattern(new Regex(pattern, RegexStandardOptions), shouldIssue, pattern) ); }
public void AddValidationPattern(string pattern, ScriptCheck shouldIssue) { _patterns.Add( new Pattern(new Regex(pattern, RegexStandardOptions), shouldIssue, pattern) ); }