public void VerifyIncludesBehaviorWhenBadConfig() { string input = "car;truck;train;"; var test = SamplingIncludesUtility.CalculateFromIncludes(input); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.RemoteDependency)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Event)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Exception)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.PageView)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Request)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Message)); }
public void VerifyIncludes() { string input = "DEPENDENCY;EVENT"; var test = SamplingIncludesUtility.CalculateFromIncludes(input); Assert.IsTrue(test.HasFlag(SamplingTelemetryItemTypes.RemoteDependency)); Assert.IsTrue(test.HasFlag(SamplingTelemetryItemTypes.Event)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Exception)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.PageView)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Request)); Assert.IsFalse(test.HasFlag(SamplingTelemetryItemTypes.Message)); }