Exemplo n.º 1
0
 public void TestAbba_firstHeapIsTheLargest_twoSpaceInTheBegin()
 {
     string firstHeap = "  4958439238923098349024";
     string secondHeap = "189285";
     string thirdHeap = "283";
     Abba a = new Abba();
     string result = a.abba(firstHeap, secondHeap, thirdHeap);
     string expected = "4958439238923098349024";
     Assert.AreEqual(expected, result);
 }
Exemplo n.º 2
0
 public void TestAbba_firstHeapIsTheLargest_illegalCharacter()
 {
     string firstHeap = "49W58439238923098349024";
     string secondHeap = "189285";
     string thirdHeap = "283";
     Abba a = new Abba();
     string result = a.abba(firstHeap, secondHeap, thirdHeap);
     string expected = "ERROR";
     Assert.AreEqual(expected, result);
 }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            string firstHeap = "189285";
            string secondHeap = "283";
            string thirdHeap = "4958439238923098349024";

            Abba a = new Abba();
            string result = a.abba(firstHeap, secondHeap, thirdHeap);
            System.Console.WriteLine("firstHeap = " + firstHeap);
            System.Console.WriteLine("secondHeap = " + secondHeap);
            System.Console.WriteLine("thirdHeap = " + thirdHeap);
            System.Console.WriteLine();
            System.Console.WriteLine("result = " + result);
        }