コード例 #1
0
        public static void Main()
        {
            VarsUnified vu = new VarsUnified();

            if (vu.LocalVariable(true) != 3.3)
            {
                Environment.Exit(-1);
            }
            if (vu.LocalVariable(false) != 9)
            {
                Environment.Exit(-1);
            }
            if (vu.LocalVariable2(true) != 9)
            {
                Environment.Exit(-1);
            }
            if (!(vu.LocalVariable2(false).Equals("Hello")))
            {
                Environment.Exit(-1);
            }
            if (!(vu.LocalVariable3(true) is ClassA))
            {
                Environment.Exit(-1);
            }
            if (!(vu.LocalVariable3(false) is ClassB))
            {
                Environment.Exit(-1);
            }
            Console.WriteLine("Successfull!!");
        }
コード例 #2
0
        public static void Main()
        {
            VarsUnified vu = new VarsUnified();

            vu.LocalVariable(true);
            vu.LocalVariable(false);
            vu.LocalVariable2(true);
            vu.LocalVariable2(false);
            vu.LocalVariable3(true);
            vu.LocalVariable3(false);
            Console.WriteLine("Successfull!!");
        }