Exemplo n.º 1
0
            public void SortStringTest_spoReturnops()
            {
                // arrange
                var LCSolution = new LCProgram();
                var expected   = "ops";

                // act
                string input  = "spo";
                var    actual = LCSolution.SortString(input);

                // assert
                Assert.AreEqual(expected, actual);
            }
Exemplo n.º 2
0
            public void SortStringTest_ratReturnart()
            {
                // arrange
                var LCSolution = new LCProgram();
                var expected   = "art";

                // act
                string input  = "rat";
                var    actual = LCSolution.SortString(input);

                // assert
                Assert.AreEqual(expected, actual);
            }
Exemplo n.º 3
0
            public void SortStringTest_leetcodeReturncdelotee()
            {
                // arrange
                var LCSolution = new LCProgram();
                var expected   = "cdelotee";

                // act
                string input  = "leetcode";
                var    actual = LCSolution.SortString(input);

                // assert
                Assert.AreEqual(expected, actual);
            }
Exemplo n.º 4
0
            public void SortStringTest_aaaabbbbccccReturnabccbaabccba()
            {
                // arrange
                var LCSolution = new LCProgram();
                var expected   = "abccbaabccba";

                // act
                string input  = "aaaabbbbcccc";
                var    actual = LCSolution.SortString(input);

                // assert
                Assert.AreEqual(expected, actual);
            }