public void EmptyStringReturnsEmptyList() { string emptyList = ""; Assert.True(ParseIntegerListFromCsv.CanParse(emptyList)); Assert.False(ParseIntegerListFromCsv.Parse(emptyList).Any()); }
public void CsvList() { string csvList = "1,2,8,6"; var intList = new List <int> { 1, 2, 8, 6 }; CollectionAssert.AreEquivalent(intList, ParseIntegerListFromCsv.Parse(csvList)); }