예제 #1
0
 protected void SetErrorPolicy()
 {
     RaisePublishErrors = PerfItRuntime.IsPublishErrorsEnabled(CategoryName, RaisePublishErrors);
 }
예제 #2
0
 public void SettingCategoryPublishErrorsInConfigWorks()
 {
     Assert.Equal(false, PerfItRuntime.IsPublishErrorsEnabled("a", true));
     Assert.Equal(true, PerfItRuntime.IsPublishErrorsEnabled("b", false));
 }
예제 #3
0
 public void SettingCategoryPublishErrorsInConfigForCategoryOverridesGlobal()
 {
     Assert.Equal(false, PerfItRuntime.IsPublishErrorsEnabled("a", true));
     Assert.Equal(true, PerfItRuntime.IsPublishErrorsEnabled("b", false));
 }