Ejemplo n.º 1
0
		public virtual void TestRun()
		{
			RunsGreen greenTest = new RunsGreen();
			RunsRed redTest = new RunsRed(FailureException);
			IEnumerable tests = Iterators.Iterable(new object[] { greenTest, redTest });
			MethodCallRecorder recorder = new MethodCallRecorder();
			ITestListener listener = new _ITestListener_23(recorder);
			new TestRunner(tests).Run(listener);
			recorder.Verify(new MethodCall[] { new MethodCall("runStarted", new object[] {  }
				), new MethodCall("testStarted", new object[] { greenTest }), new MethodCall("testStarted"
				, new object[] { redTest }), new MethodCall("testFailed", new object[] { redTest
				, FailureException }), new MethodCall("runFinished", new object[] {  }) });
		}
Ejemplo n.º 2
0
        public virtual void TestRun()
        {
            RunsGreen          greenTest = new RunsGreen();
            RunsRed            redTest   = new RunsRed(FailureException);
            IEnumerable        tests     = Iterators.Iterable(new object[] { greenTest, redTest });
            MethodCallRecorder recorder  = new MethodCallRecorder();
            ITestListener      listener  = new _ITestListener_23(recorder);

            new TestRunner(tests).Run(listener);
            recorder.Verify(new MethodCall[] { new MethodCall("runStarted", new object[] {  }
                                                              ), new MethodCall("testStarted", new object[] { greenTest }), new MethodCall("testStarted"
                                                                                                                                           , new object[] { redTest }), new MethodCall("testFailed", new object[] { redTest
                                                                                                                                                                                                                    , FailureException }), new MethodCall("runFinished", new object[] {  }) });
        }