public void EstimateTest() { double[] values = { 1 }; bool thrown = false; try { NormalDistribution.Estimate(values); } catch (ArgumentException) { thrown = true; } Assert.IsTrue(thrown); } }