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