Пример #1
0
        public void SetUp()
        {
            tests = new List<Test>
            {
                new Test("1"),
                new Test("2"),
                new Test("3")
            };
            mocks = new MockRepository();
            runner = mocks.StrictMock<TestRunner>(new FixtureRegistry());
            listener = mocks.StrictMock<IBatchListener>();

            batch = new BatchRunner(tests, listener, runner);
        }
Пример #2
0
 public virtual void RunTests(IEnumerable<Test> tests, IBatchListener listener)
 {
     var batch = new BatchRunner(tests, listener, this);
     batch.Execute();
 }
Пример #3
0
 public BatchRunner(IEnumerable<Test> tests, IBatchListener listener, TestRunner runner)
 {
     _tests = tests;
     _listener = listener;
     _runner = runner;
 }
Пример #4
0
        public virtual void RunTests(IEnumerable <Test> tests, IBatchListener listener)
        {
            var batch = new BatchRunner(tests, listener, this);

            batch.Execute();
        }
Пример #5
0
 public BatchRunner(IEnumerable <Test> tests, IBatchListener listener, TestRunner runner)
 {
     _tests    = tests;
     _listener = listener;
     _runner   = runner;
 }