public void Run_Platform_Tests() { var logger = new StringLogger(); var platformTests = new PlatformTestSuite.PlatformTests(logger); int failed; int run; int passed; platformTests.RunTests(out run, out passed, out failed); Assert.AreEqual(0, failed, logger.Log); }
partial void buttonClick (MonoTouch.UIKit.UIButton sender) { var logger = new ListLogger (); var platformTests = new TinyIoC.Tests.PlatformTestSuite.PlatformTests (logger); int run; int passed; int failed; platformTests.RunTests (out run, out passed, out failed); this.results.Text = ""; foreach (var item in logger.LogEntries) { this.results.Text += item + "\n"; } using (var alert = new UIAlertView ("TinyIoC", String.Format ("{0} tests run. {1} passed, {2} failed.", run, passed, failed), null, "OK", null)) { alert.Show (); } }
partial void buttonClick(MonoTouch.UIKit.UIButton sender) { var logger = new ListLogger(); var platformTests = new TinyIoC.Tests.PlatformTestSuite.PlatformTests(logger); int run; int passed; int failed; platformTests.RunTests(out run, out passed, out failed); this.results.Text = ""; foreach (var item in logger.LogEntries) { this.results.Text += item + "\n"; } using (var alert = new UIAlertView("TinyIoC", String.Format("{0} tests run. {1} passed, {2} failed.", run, passed, failed), null, "OK", null)) { alert.Show(); } }