public void TestAverage() { var a = Math_.Average(1.0, 4.0, 2.0, 7.0, -3.0); Assert.Equal(a, 2.2); var m = Math_.Median(1.0, 4.0, 2.0, 7.0, -3.0); Assert.Equal(m, 2.0); m = Math_.Median(1.0, 4.0, 2.0, 7.0, -3.0, -1.0); Assert.Equal(m, 1.5); }