예제 #1
0
        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);
        }
예제 #2
0
		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 ();
			}

		}
예제 #3
0
        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();
            }
        }