public void RecTest() { int ret5 = SortLevel.KnuthRec(5); int ret4 = SortLevel.KnuthRec(4); int ret3 = SortLevel.KnuthRec(3); int ret2 = SortLevel.KnuthRec(2); int ret1 = SortLevel.KnuthRec(1); int ret0 = SortLevel.KnuthRec(0); int expected5 = 364; int expected4 = 121; int expected3 = 40; int expected2 = 13; int expected1 = 4; int expected0 = 1; Assert.AreEqual(expected5, ret5); Assert.AreEqual(expected4, ret4); Assert.AreEqual(expected3, ret3); Assert.AreEqual(expected2, ret2); Assert.AreEqual(expected1, ret1); Assert.AreEqual(expected0, ret0); }