private void TestMatchPrefixes(string strings, string prefixes, string expected) { var listStrings = strings.Split(new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); var listPrefixes = prefixes.Split(new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); var listExpected = expected.Split(new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); var listActual = CsUtility.MatchPrefixes(listStrings, listPrefixes); Assert.AreEqual(TestUtility.DumpSorted(listExpected), TestUtility.DumpSorted(listActual), "Matching strings '" + strings + "' for prefixes '" + prefixes + "'."); }