public void Example1() { List <string> testData = new List <string> { "class: 1-3 or 5-7", "row: 6-11 or 33-44", "seat: 13-40 or 45-50", "", "your ticket:", "7,1,14", "", "nearby tickets:", "7,3,47", "40,4,50", "55,2,20", "38,6,12" }; TicketValidator validator = new TicketValidator(); validator.ParseData(testData); int result = validator.ValidateAllNumbers(); Assert.AreEqual(71, result); }