public void WhenNoUnitIsSpecifiedNoneIsUsed() => MetricBuilder .Create() .SpecifyMetric("Latency", 42.0) .Build() .Unit .Should() .Be("None");
public void ThenTheMetricValueIsSpecified() => MetricBuilder .Create() .SpecifyMetric("Latency", 42.0) .Build() .Value .Should() .Be(42.0);
public void ThenTheMetricUnitIsSpecified() => MetricBuilder .Create() .SpecifyMetric("Latency", 42.0, Unit.Gigabits) .Build() .Unit .Should() .Be("Gigabits");
public void ThenTheMetricNameIsSpecified() => MetricBuilder .Create() .SpecifyMetric("Latency", 0.0) .Build() .Name .Should() .Be("Latency");
public void ThenDimensionsAreSpecified() => MetricBuilder .Create() .SpecifyMetric("Foo", 42) .AddDimension("TowelId", "abc") .Build() .Dimensions .Should() .Contain(new KeyValuePair <string, string>("TowelId", "abc"));