public void InProcDistStrategyConstructor() { InProcLogDistributionStrategy ip = new InProcLogDistributionStrategy(); ip.ConfigurationName = "InProc"; ip.Initialize(new LoggingConfigurationView(Context)); Assert.IsNotNull(ip); }
public void SendMessageInProc() { InProcLogDistributionStrategy ip = new InProcLogDistributionStrategy(); ip.ConfigurationName = "InProc"; ip.Initialize(new LoggingConfigurationView(Context)); LogEntry msg = CommonUtil.GetDefaultLogEntry(); msg.Category = "MockCategoryOne"; ip.SendLog(msg); Assert.AreEqual(CommonUtil.MsgBody, MockLogSink.GetLastEntry().Message); }