コード例 #1
0
        public void TestFullUI()
        {
            // Set User Input
            string[] lines =
            {
                "int",
                "System.Int32",
                "2",           "1",  //remove void
                "1",           "12",
                "",
                "1",           "42",
                "1",           "55",
                "4",
                "2",           "42",
                "System.Int32",
                "5",
                "",            "",   "", ""
            };
            StringReader input = new StringReader(String.Join(Environment.NewLine, lines));

            Console.SetIn(input);

            // Launch the menu
            var factory = new MyFactory();

            factory.MainMenu();
        }