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; }
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); }
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)); }