コード例 #1
0
 public void InProcDistStrategyConstructor()
 {
     InProcLogDistributionStrategy ip = new InProcLogDistributionStrategy();
     ip.ConfigurationName = "InProc";
     ip.Initialize(new LoggingConfigurationView(Context));
     Assert.IsNotNull(ip);
 }
コード例 #2
0
        public void InProcDistStrategyConstructor()
        {
            InProcLogDistributionStrategy ip = new InProcLogDistributionStrategy();

            ip.ConfigurationName = "InProc";
            ip.Initialize(new LoggingConfigurationView(Context));
            Assert.IsNotNull(ip);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
        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);
        }