public void RedirectedConsoleIsCreatedIfConsoleIsRedirected()
        {
            //Arrange
            var factory = new ConsoleFactory(new FakeConsoleRedirectTester(true, false));

            //Act
            var console = factory.Console;

            //Assert
            Assert.That(console, Is.InstanceOf<RedirectedConsole>());
        }
        public void RedirectedConsoleIsCreatedForErrorIfErrorIsRedirected()
        {
            //Arrange
            var factory = new ConsoleFactory(new FakeConsoleRedirectTester(false, true));

            //Act
            var error = factory.Error;

            //Assert
            Assert.That(error, Is.InstanceOf<RedirectedConsole>());
        }