public void TestValidateTicketFields(int iTicket, int[] expectedInvalidFields) { var nearbyTickets = this.testData.GetNearbyTickets(); Dictionary <string, string[]> fieldRules = this.testData.GetFieldRules(); List <int> invalidFields = TicketTranslator.ValidateTicketFields(fieldRules, nearbyTickets[iTicket]); Assert.AreEqual(expectedInvalidFields.ToList(), invalidFields); }
public void Setup() { this.testData = new TicketTranslator(FilePathTestData); this.inputData = new TicketTranslator(FilePathInputData); }