Exemplo n.º 1
0
 static void Main(string[] args)
 {
     Console.Write ("enter string:");
     string name = Console.ReadLine();
     Solver solver = new Solver();
     Console.WriteLine (solver.solve (name));
 }
        public void solveTest()
        {
            Solver target = new Solver();
            string question = "AABBCBBBAA";
            string expected = "AAAABBBBBC";
            string actual;
            actual = target.solve(question);
            Assert.AreEqual(expected, actual);

            question = "ABCA";
            expected = "AABC";
            actual = target.solve(question);
            Assert.AreEqual(expected, actual);
        }