예제 #1
0
        public void SortedByLength(string[] input, string output)
        {
            // Arrange
            var solution = new SortedByLength();

            //Assert
            var result = solution.LongestCommonPrefix(input);

            //Assert
            Assert.Equal(output, result);
        }
예제 #2
0
        public string SortedByLength()
        {
            var solution = new SortedByLength();

            return(solution.LongestCommonPrefix(_input));
        }