public void Logger_can_be_used_with_default_configuration()
        {
            // Arrange
            var logger = new TestLogger();
            var events = new FakeTestLoggerEvents();

            // Act
            logger.Initialize(events, Directory.GetCurrentDirectory());

            // Assert
            logger.Context.Should().NotBeNull();
            logger.Context !.Options.Should().Be(TestLoggerOptions.Default);
        }
        public void Logger_can_be_used_with_custom_configuration()
        {
            // Arrange
            var logger = new TestLogger();

            var events     = new FakeTestLoggerEvents();
            var parameters = new Dictionary <string, string>
            {
                ["format"]          = "$test -> $outcome",
                ["report-warnings"] = "false"
            };

            // Act
            logger.Initialize(events, parameters);

            // Assert
            logger.Context.Should().NotBeNull();
            logger.Context !.Options.MessageFormat.Template.Should().Be("$test -> $outcome");
            logger.Context !.Options.ReportWarnings.Should().BeFalse();
        }