/// <summary> /// Setup Mocks and other dependencies /// </summary> private void Setup() { // mock for ITestRunRequest this.testRunRequest = new Mock <ITestRunRequest>(); this.events = new Mock <TestLoggerEvents>(); this.mockOutput = new Mock <IOutput>(); this.consoleLogger = new ConsoleLogger(this.mockOutput.Object); DummyTestLoggerManager.Cleanup(); // Create Instance of TestLoggerManager this.testLoggerManager = TestLoggerManager.Instance; this.testLoggerManager.AddLogger(this.consoleLogger, ConsoleLogger.ExtensionUri, new Dictionary <string, string>()); this.testLoggerManager.EnableLogging(); // Register TestRunRequest object this.testLoggerManager.RegisterTestRunEvents(this.testRunRequest.Object); }
public void Cleanup() { DummyTestLoggerManager.Cleanup(); }