public void Test1() { ITextSorting sut = new homework01(); var actual = sut.SortByAlphabetical("without,hello,bag,world"); var expected = "bag,hello,without,world"; Assert.Equal(expected, actual); }
static void Main(string[] args) { Console.Write("Please Input (ex.:without,hello,bag,world) :"); string input = Console.ReadLine(); homework01 hm1 = new homework01(); var result = hm1.SortByAlphabetical(input); Console.WriteLine(result); }