public void SmokeIntegrationalTest() { Config.XmlConfigurator.Configure(); var logger = LogManager.GetLogger(this.GetType()); var appenders = logger.Logger.Repository.GetAppenders(); Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsTrue(appenders.Length > 0, "Seems that Raven Appender is not configured"); this.appender = appenders[0] as RavenAppender; Microsoft.VisualStudio.TestTools.UnitTesting.Assert.IsNotNull(appender, "Raven Appender is expected to be the only one configured for tests"); // Assert TraceInfro trace = new TraceInfro() { Info = "Log Info" }; logger.Info(trace); logger.Warn("Log Warning"); logger.Error("Log Warning", new Exception("Something wrong happened", new UserException())); LogManager.Shutdown(); }