Ejemplo n.º 1
0
        public void ShouldReadDllsFromConfiguration()
        {
            var dllList = Log4ErrorConfigSectionReader.GetDllList();

            Assert.That(dllList, Is.Not.Null);
            Assert.That(dllList.Count, Is.EqualTo(2));
            Assert.That(dllList, Has.Member("UnitTests"));
            Assert.That(dllList, Has.Member("Log4Error"));
        }
        public Log4Error()
        {
            var dllList = Log4ErrorConfigSectionReader.GetDllList();

            foreach (var dll in dllList)
            {
                var tempDictionary = ErrorMessageParser.Parse(dll);
                ErrorMap = ErrorMap.Concat(tempDictionary).ToDictionary(x => x.Key, x => x.Value);
            }
        }