public void SortedByLength(string[] input, string output) { // Arrange var solution = new SortedByLength(); //Assert var result = solution.LongestCommonPrefix(input); //Assert Assert.Equal(output, result); }
public string SortedByLength() { var solution = new SortedByLength(); return(solution.LongestCommonPrefix(_input)); }