private void VerifyMetricsAreOk(IList<XMetric> xMetrics, int expectedCount)
 {
     xMetrics.ShouldNotBeNullAndHaveCount(expectedCount);
     xMetrics.Should().OnlyContain(aMetric => aMetric.Name.IsNotNullOrEmpty() &&
                                              aMetric.Value.IsNotNullOrEmpty());
 }