Beispiel #1
0
        public MutantsResultReporterTests()
        {
            _mutantKilledLogger   = new Mock <IConsoleOneLineLogger>();
            _mutantSurvivedLogger = new Mock <IConsoleOneLineLogger>();
            _mutantTimeoutLogger  = new Mock <IConsoleOneLineLogger>();

            _target = new MutantsResultReporter(_mutantKilledLogger.Object,
                                                _mutantSurvivedLogger.Object,
                                                _mutantTimeoutLogger.Object);
        }
        private static ProgressReporter CreateProgressReporter()
        {
            var consoleOneLineLoggerFactory = new ConsoleOneLineLoggerFactory();
            var progressBarReporter         =
                new ProgressBarReporter(consoleOneLineLoggerFactory.Create(), new StopWatchProvider());
            var mutantKilledLogger   = consoleOneLineLoggerFactory.Create();
            var mutantSurvivedLogger = consoleOneLineLoggerFactory.Create();
            var mutantTimeoutLogger  = consoleOneLineLoggerFactory.Create();

            var mutantsResultReporter = new MutantsResultReporter(
                mutantKilledLogger,
                mutantSurvivedLogger,
                mutantTimeoutLogger);

            return(new ProgressReporter(mutantsResultReporter, progressBarReporter));
        }