Esempio n. 1
0
        public TextTester(ISimpleLogger logger, ILogAsserter logAsserter, ITextDifferenceFormatter differenceFormatter)
        {
            this.logger              = logger ?? throw new ArgumentNullException(nameof(logger));
            this.logAssert           = logAsserter ?? throw new ArgumentNullException(nameof(logAsserter));
            this.differenceFormatter = differenceFormatter ?? throw new ArgumentNullException(nameof(differenceFormatter));

            this.actualText   = string.Empty;
            this.expectedText = string.Empty;
        }
Esempio n. 2
0
 public TextTester(ILogAsserter logAsserter, ITextDifferenceFormatter differenceFormatter) : this(new SimpleConsoleLogger(), logAsserter, differenceFormatter)
 {
 }