public void CallsignParser_GetAllAlternateCallsigns_Returns_The_Correct_Collection_Of_Callsigns() { var worksheet = new ExcelWorksheetData(TestContext); InitialiseStandingDataFromWorksheet(worksheet, countColumns: 2); var callsign = worksheet.EString("Callsign"); var result = _CallsignParser.GetAllAlternateCallsigns(callsign); var expectedText = worksheet.String("Result") ?? ""; var expectedResult = expectedText == "" ? new string[] {} : worksheet.Array <string>("Result").Select(r => r == null ? null : r.Trim()).ToArray(); var message = String.Format("{0} -> {1}", callsign, expectedText); Assert.AreEqual(expectedResult.Length, result.Count, message); foreach (var expected in expectedResult) { Assert.IsTrue(result.Contains(expected), "Missing '{0}'. {1}", expected, message); } }