public void TestSerializeMethod() { var metric = new MetricData("Test/Metric", "units", 3); var value = metric.Serialize(); Assert.IsTrue(value is Array); Assert.AreEqual((float)value.GetValue(0), metric.Value); Assert.AreEqual((float)value.GetValue(1), metric.Count); Assert.AreEqual((float)value.GetValue(2), metric.MinValue); Assert.AreEqual((float)value.GetValue(3), metric.MaxValue); Assert.AreEqual((float)value.GetValue(4), metric.SumOfSquares); }