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