public void FitTest() { bool thrown = false; TDistribution target = new TDistribution(1); try { target.Fit(null, null, null); } catch (NotSupportedException) { thrown = true; } Assert.IsTrue(thrown); }