Beispiel #1
0
        static void Main(string[] args)
        {
            bool pause = true;

            if (args != null)
            {
                if (args.Length >= 1)
                {
                    if (args[0] == "/NOPAUSE")
                    {
                        pause = false;
                    }
                }
            }

            TestDriver testDriver = new TestDriver();

            string result;

            bool success = testDriver.RunSanityCheck(out result);

            Console.WriteLine(result);

            if (pause || !success)
            {
                Console.ReadLine();
            }
        }
Beispiel #2
0
        private void MainPage_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            TestDriver testDriver = new TestDriver();

            string result;

            bool success = testDriver.RunSanityCheck(out result);

            if (textBlock != null)
            {
                textBlock.Text = result;
            }
        }