Esempio n. 1
0
        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);
        }
Esempio n. 2
0
    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);
    }