Пример #1
0
 public static void Main(string[] args)
 {
     if (null != args && args.Length > 0)
         if (!ParseArgs(args))
             return;
     var menu = new ConsoleMenu();
     menu.AddMenuItem('1', "Run some BinarySerializerService tests", RunSerializerTests);
     menu.AddMenuItem('2', "Run tests on RuntimeHelper", RunRuntimeHelper);
     menu.AddMenuItem('3', "Run more BinarySerializerService tests", RunMoreSerializerTests);
     menu.AddMenuItem('4', "Run \"Primitive\" serialization test", TestPrimitiveSerialization);
     menu.AddMenuItem('5', "Run Multi-Dimensional array serialization test", TestMultiDimensionalArray);
     menu.AddMenuItem('6', "Run Tcp connection tests", () => new TcpConnectionTests().Run());
     menu.AddMenuItem('7', "Run timerservice tests", RunTimerServiceTests);
     menu.AddMenuItem('8', "Run BinarySerializerService 'Visualization'", RunSerializerVisualization);
     menu.AddMenuItem('9', "Run some tests on XmlSerializer", DoTest);
     menu.AddMenuItem('w', "Run the WPF test window", StartDialog);
     menu.ShowMenu();
 }
Пример #2
0
        public static void Main(string[] args)
        {
            if (null != args && args.Length > 0)
            {
                if (!ParseArgs(args))
                {
                    return;
                }
            }
            var menu = new ConsoleMenu();

            menu.AddMenuItem('1', "Run some BinarySerializerService tests", RunSerializerTests);
            menu.AddMenuItem('2', "Run tests on RuntimeHelper", RunRuntimeHelper);
            menu.AddMenuItem('3', "Run more BinarySerializerService tests", RunMoreSerializerTests);
            menu.AddMenuItem('4', "Run \"Primitive\" serialization test", TestPrimitiveSerialization);
            menu.AddMenuItem('5', "Run Multi-Dimensional array serialization test", TestMultiDimensionalArray);
            menu.AddMenuItem('6', "Run Tcp connection tests", () => new TcpConnectionTests().Run());
            menu.AddMenuItem('7', "Run timerservice tests", RunTimerServiceTests);
            menu.AddMenuItem('8', "Run BinarySerializerService 'Visualization'", RunSerializerVisualization);
            menu.AddMenuItem('9', "Run some tests on XmlSerializer", DoTest);
            menu.AddMenuItem('w', "Run the WPF test window", StartDialog);
            menu.ShowMenu();
        }
Пример #3
0
 public void Run()
 {
     menu.AddMenuItem('1', "Run a simple Server/Client test", RunClientServerTest);
     menu.AddMenuItem('2', "Run a test on the subscriber functionality of StubConnection", RunSubscriberTest);
     menu.ShowMenu();
 }