protected void SetErrorPolicy() { RaisePublishErrors = PerfItRuntime.IsPublishErrorsEnabled(CategoryName, RaisePublishErrors); }
public void SettingCategoryPublishErrorsInConfigWorks() { Assert.Equal(false, PerfItRuntime.IsPublishErrorsEnabled("a", true)); Assert.Equal(true, PerfItRuntime.IsPublishErrorsEnabled("b", false)); }
public void SettingCategoryPublishErrorsInConfigForCategoryOverridesGlobal() { Assert.Equal(false, PerfItRuntime.IsPublishErrorsEnabled("a", true)); Assert.Equal(true, PerfItRuntime.IsPublishErrorsEnabled("b", false)); }