public void U__ElmahLogger__MinLevel__Info() { NameValueCollection collections = new NameValueCollection(); collections["MinLevel"] = "Info"; ElmahLoggerFactoryAdapter lfa = new ElmahLoggerFactoryAdapter(collections); var logger = lfa.GetLogger(""); logger.Error("Test"); var list = new List<global::Elmah.ErrorLogEntry>(); global::Elmah.ErrorLog.GetDefault(null).GetErrors(0, 20, list); Assert.AreEqual(1, list.Count); }
public void U__ElmahLogger__MinLevel__Info() { NameValueCollection collections = new NameValueCollection(); collections["MinLevel"] = "Info"; ElmahLoggerFactoryAdapter lfa = new ElmahLoggerFactoryAdapter(collections); var logger = lfa.GetLogger(""); logger.Error("Test"); var list = new List <global::Elmah.ErrorLogEntry>(); global::Elmah.ErrorLog.GetDefault(null).GetErrors(0, 20, list); Assert.AreEqual(1, list.Count); }