Ejemplo n.º 1
0
        static int Main()
        {
            CTest c = new CTest();

            if (c.f1a() != 1) return 1;
            if (c.f1b(0) != 1) return 1;
            if (c.f1c() != 1) return 1;
            if (c.f1d() != "1") return 1;
            if (c.f2a() != 2) return 2;
            if (c.f2b(0) != 2) return 2;
            if (c.f2c() != 2) return 2;
            if (c.f2d() != "2") return 2;
            if (c.f3a() != 3) return 3;
            if (c.f3b(0) != 3) return 3;
            if (c.f3c() != 3) return 3;
            if (c.f3d() != "3") return 3;
            if (c.f4a() != 4) return 4;
            if (c.f4b(0) != 4) return 4;
            if (c.f4c() != 4) return 4;
            if (c.f4d() != "4") return 4;
            if (c.f5a() != 5) return 5;
            if (c.f5b(0) != 5) return 5;
            if (c.f5c() != 5) return 5;
            if (c.f5d() != "5") return 5;
            if (c.f6a() != 6) return 6;
            if (c.f6b(0) != 6) return 6;
            if (c.f6c() != 6) return 6;
            if (c.f6d() != "6") return 6;
            if (c.f7a() != 7) return 7;
            if (c.f7b(0) != 7) return 7;
            if (c.f7c() != 7) return 7;
            if (c.f7d() != "7") return 7;
            if (c.f8a() != 8) return 8;
            if (c.f8b(0) != 8) return 8;
            if (c.f8c() != 8) return 8;
            if (c.f8d() != "8") return 8;
            if (c.f9a() != 9) return 9;
            if (c.f9b(0) != 9) return 9;
            if (c.f9c() != 9) return 9;
            if (c.f9d() != "9") return 9;
            if (c.f10a() != 10) return 10;
            if (c.f10b(0) != 10) return 10;
            if (c.f10c() != 10) return 10;
            if (c.f10d() != "10") return 10;

            Console.WriteLine("PASSED");
            return 100;
        }
Ejemplo n.º 2
0
        static int Main()
        {
            CTest c = new CTest();

            if (c.f1a() != 1)
            {
                return(1);
            }
            if (c.f1b(0) != 1)
            {
                return(1);
            }
            if (c.f1c() != 1)
            {
                return(1);
            }
            if (c.f1d() != "1")
            {
                return(1);
            }
            if (c.f2a() != 2)
            {
                return(2);
            }
            if (c.f2b(0) != 2)
            {
                return(2);
            }
            if (c.f2c() != 2)
            {
                return(2);
            }
            if (c.f2d() != "2")
            {
                return(2);
            }
            if (c.f3a() != 3)
            {
                return(3);
            }
            if (c.f3b(0) != 3)
            {
                return(3);
            }
            if (c.f3c() != 3)
            {
                return(3);
            }
            if (c.f3d() != "3")
            {
                return(3);
            }
            if (c.f4a() != 4)
            {
                return(4);
            }
            if (c.f4b(0) != 4)
            {
                return(4);
            }
            if (c.f4c() != 4)
            {
                return(4);
            }
            if (c.f4d() != "4")
            {
                return(4);
            }
            if (c.f5a() != 5)
            {
                return(5);
            }
            if (c.f5b(0) != 5)
            {
                return(5);
            }
            if (c.f5c() != 5)
            {
                return(5);
            }
            if (c.f5d() != "5")
            {
                return(5);
            }
            if (c.f6a() != 6)
            {
                return(6);
            }
            if (c.f6b(0) != 6)
            {
                return(6);
            }
            if (c.f6c() != 6)
            {
                return(6);
            }
            if (c.f6d() != "6")
            {
                return(6);
            }
            if (c.f7a() != 7)
            {
                return(7);
            }
            if (c.f7b(0) != 7)
            {
                return(7);
            }
            if (c.f7c() != 7)
            {
                return(7);
            }
            if (c.f7d() != "7")
            {
                return(7);
            }
            if (c.f8a() != 8)
            {
                return(8);
            }
            if (c.f8b(0) != 8)
            {
                return(8);
            }
            if (c.f8c() != 8)
            {
                return(8);
            }
            if (c.f8d() != "8")
            {
                return(8);
            }
            if (c.f9a() != 9)
            {
                return(9);
            }
            if (c.f9b(0) != 9)
            {
                return(9);
            }
            if (c.f9c() != 9)
            {
                return(9);
            }
            if (c.f9d() != "9")
            {
                return(9);
            }
            if (c.f10a() != 10)
            {
                return(10);
            }
            if (c.f10b(0) != 10)
            {
                return(10);
            }
            if (c.f10c() != 10)
            {
                return(10);
            }
            if (c.f10d() != "10")
            {
                return(10);
            }

            Console.WriteLine("PASSED");
            return(100);
        }