Пример #1
0
 public void TestNChooseR()
 {
     Assert.AreEqual(21, NewOrder.NChooseR(7, 2));
     Assert.AreEqual(10, NewOrder.NChooseR(5, 3));
     Assert.AreEqual(1, NewOrder.NChooseR(5, 5));
     Assert.AreEqual(210, NewOrder.NChooseR(10, 4));
     Assert.AreEqual(11440, NewOrder.NChooseR(16, 9));
 }