public void TestGetCorrectStepsCount() { string mon = "Monday"; string tue = "Tuesday"; string wed = "Wednesday"; double monVal = 0.01d; double tueVal = 0.80d; double wedVal = 0.30d; Classification <string> result = new Classification <string>(); result.SetActualValues(new[] { mon, tue, wed }); result.SetStats(1, new[] { monVal, tueVal, wedVal }); Assert.IsTrue(result.GetMostProbableBucketIndex(1) == 1); Assert.IsTrue(result.GetMostProbableBucketIndex(2) == -1); double monVal2 = 0.30d; double tueVal2 = 0.01d; double wedVal2 = 0.29d; result.SetStats(3, new[] { monVal2, tueVal2, wedVal2 }); Assert.IsTrue(result.GetMostProbableBucketIndex(3) == 0); Assert.IsTrue(result.GetMostProbableBucketIndex(2) == -1); Assert.IsTrue(result.GetStepCount() == 2); }