public void TestPrimeDivisors(uint n, uint[] divisors) { int i = 0; foreach (uint primeDivisor in Divisors.PrimeDivisors(n)) { Assert.LessThan(i, divisors.Length); Assert.AreEqual(divisors[i++], primeDivisor); } }