示例#1
0
        public void ShouldReverseString1()
        {
            var sut = new ReverseThings();

            var reversedString = sut.ReverseString1("iman");

            Assert.Equal("nami", reversedString);
        }
示例#2
0
文件: Program.cs 项目: ImanMe/sandbox
        private static void ReverseThings()
        {
            Console.WriteLine("Reverse Things");

            var sut = new ReverseThings();

            Console.WriteLine(sut.ReverseString1("iman"));
            Console.WriteLine(sut.ReverseString2("iman"));
            Console.WriteLine(sut.ReverseString3("iman"));
            Console.WriteLine(sut.ReverseString4("iman"));
            Console.WriteLine(sut.ReverseInteger1(123));
            Console.WriteLine(sut.ReverseInteger1(-123));
        }