public void ConstructorDefault()
        {
            var instance = new MockLogger();
            var results  = instance.GetOptions();

            Assert.AreEqual(results?.LogErrors, true);
            Assert.AreEqual(results?.LogInformation, true);
            Assert.AreEqual(results?.LogWarnings, true);
        }
        public void LogErrorsOption()
        {
            const bool   logError                = true;
            const string settingName             = "testingOptions";
            Dictionary <string, string> settings = new Dictionary <string, string>()
            {
                { $"{settingName}:LogErrors", logError.ToString() }
            };
            var cfgBuilder = new ConfigurationBuilder();

            cfgBuilder.AddInMemoryCollection(settings);
            IConfiguration cfg = cfgBuilder.Build();

            var instance = new MockLogger(settingName, cfg);
            var results  = instance.GetOptions();

            Assert.AreEqual(results?.LogErrors, logError);
            Assert.AreEqual(results?.LogInformation, null);
            Assert.AreEqual(results?.LogWarnings, null);
        }