Ejemplo n.º 1
0
        public void RunTillAllTestsHaveBeenRunned()
        {
            Mock<TestReporter> reporterMock = new Mock<TestReporter>();
            TestSuite suite = new TestSuiteMock(reporterMock.Object);

            Session session = new Session();
            //TODO First test the test runner.
        }
Ejemplo n.º 2
0
        public void RunningSimpleTests()
        {
            Mock<AbstractTestReporter> reporterMock = new Mock<AbstractTestReporter>();
            TestSuite suite = new TestSuiteMock(reporterMock.Object);

            Session session = new Session();
            session.AddAll(typeof(TestClass));
            session.Add(typeof(AnotherTestClass).GetMethod("Blub"));
            suite.RunSimpleTests(session);
            AssertThatTheMethodsAreCalledCorrectlyAfterRunningAllSimpleTests();
            reporterMock.Verify(rep => rep.PresentReports(), Times.Once());
        }