public void TestGetMessages() { List <string> messages = MessageValidator.GetMessages(this.testData); Assert.AreEqual(5, messages.Count); Assert.AreEqual("aaaabbb", messages[4]); }
public void TestValidate(int iMessage, bool expectedValid) { List <string> messages = MessageValidator.GetMessages(this.testData); Dictionary <string, string> rules = MessageValidator.GetRules(this.testData); bool valid = MessageValidator.Validate(messages[iMessage], rules); Assert.AreEqual(expectedValid, valid); }