public void NullTarget() { var item = new DependencyTelemetry(); var extractor = new TargetDimensionExtractor(); var extractedDimension = extractor.ExtractDimension(item); Assert.AreEqual(string.Empty, extractedDimension); }
public void ActualTarget() { var item = new DependencyTelemetry(); item.Target = "ExpectedTarget"; var extractor = new TargetDimensionExtractor(); var extractedDimension = extractor.ExtractDimension(item); Assert.AreEqual("ExpectedTarget", extractedDimension); }