Наследование: IMessageProcessor
Пример #1
0
        public void SetUp()
        {
            _rootSuiteName   = "C:\\Program Files\\NUnit 2.2.9\\bin\\mock-assembly.dll";
            _passingTestName = "NUnit.Tests.Assemblies.MockTestFixture.MockTest1";


            _logger      = MockRepository.GenerateMock <IMessageLogger>();
            _suiteLogger = MockRepository.GenerateMock <ITestSuiteMessageLogger>();
            _testLogger  = MockRepository.GenerateMock <ITestLogger>();
            _logger.Stub(x => x.WriteTestSuiteStarted(Arg <string> .Is.Anything)).Return(_suiteLogger);
            _suiteLogger.Stub(x => x.WriteTestStarted(Arg <string> .Is.Anything)).Return(_testLogger);
            _subject = new NunitMessageProcessor(_logger);
        }
        public void SetUp()
        {
            _rootSuiteName = "C:\\Program Files\\NUnit 2.2.9\\bin\\mock-assembly.dll";
            _passingTestName = "NUnit.Tests.Assemblies.MockTestFixture.MockTest1";

            _logger = MockRepository.GenerateMock<IMessageLogger>();
            _suiteLogger = MockRepository.GenerateMock<ITestSuiteMessageLogger>();
            _testLogger = MockRepository.GenerateMock<ITestLogger>();
            _logger.Stub(x => x.WriteTestSuiteStarted(Arg<string>.Is.Anything)).Return(_suiteLogger);
            _suiteLogger.Stub(x => x.WriteTestStarted(Arg<string>.Is.Anything)).Return(_testLogger);
            _subject = new NunitMessageProcessor(_logger);
        }