public void OutputFriendlyDescriptionWithIndexOverloadTest2() { //create a new list to output var OutputList = new List<string> { "Item 1" }; //go run the output string var Result = OutputList.ToOutputString((thisItem, thisIndex) => string.Format("{0}. {1}", thisIndex + 1, thisItem), ", "); //check the result Assert.Equal("1. Item 1", Result); }
public void OutputFriendlyDescriptionNonIndexOverloadTest3() { //create a new list to output var OutputList = new List<string>(); //go run the output string var Result = OutputList.ToOutputString(x => x, ", "); //check the result Assert.Equal(string.Empty, Result); }