private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var logger = new StringLogger();
            var tests = new PlatformTests(logger);
            int testsRun, testsPassed, testsFailed;
            tests.RunTests(out testsRun, out testsPassed, out testsFailed);

            this.logSummary.Text = String.Format("{0} Run, {1} Passed, {2} Failed", testsRun, testsPassed, testsFailed);
            this.logResults.Text = logger.Log;
        }
示例#2
0
文件: Form1.cs 项目: khellang/TinyIoC
        private void pushMeButton_Click(object sender, EventArgs e)
        {
            var tests = new PlatformTests(new ListBoxLogger(listBox1));
            int run;
            int passed;
            int failed;

            tests.RunTests(out run, out passed, out failed);

            MessageBox.Show("Run: " + run + " Passed: " + passed + " Failed: " + failed);
        }
示例#3
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var logger = new StringLogger();
            var tests = new PlatformTests(logger);
            int testsRun, testsPassed, testsFailed;

            tests.RunTests(out testsRun, out testsPassed, out testsFailed);

            this.logSummary.Text = String.Format("{0} Run, {1} Passed, {2} Failed", testsRun, testsPassed, testsFailed);
            this.logResults.Text = logger.Log;
        }
示例#4
0
        private void pushMeButton_Click(object sender, EventArgs e)
        {
            var tests = new PlatformTests(new ListBoxLogger(listBox1));
            int run;
            int passed;
            int failed;

            tests.RunTests(out run, out passed, out failed);

            MessageBox.Show("Run: " + run + " Passed: " + passed + " Failed: " + failed);
        }
示例#5
0
 private void GoButton_Click(object sender, RoutedEventArgs e)
 {
     var logger = new ListLogger();
     var tests = new PlatformTests(logger);
     int testsRun;
     int testsPassed;
     int testsFailed;
     tests.RunTests(out testsRun, out testsPassed, out testsFailed);
     Results.Items.Clear();
     foreach (var item in logger.LogEntries)
     {
         Results.Items.Add(item);
     }
     MessageBox.Show(String.Format("{0} tests run. {1} passed, {2} failed.", testsRun, testsPassed, testsFailed));
 }
示例#6
0
        private void GoButton_Click(object sender, RoutedEventArgs e)
        {
            var logger = new ListLogger();
            var tests  = new PlatformTests(logger);
            int testsRun;
            int testsPassed;
            int testsFailed;

            tests.RunTests(out testsRun, out testsPassed, out testsFailed);
            Results.Items.Clear();
            foreach (var item in logger.LogEntries)
            {
                Results.Items.Add(item);
            }
            MessageBox.Show(String.Format("{0} tests run. {1} passed, {2} failed.", testsRun, testsPassed, testsFailed));
        }