public void GenerateEvenOddPairs() { int[,] evenOddPairs = InputGenerator.GenerateRandomEvenOddPairs(1000, 1, 100); Assert.AreEqual(1000, evenOddPairs.GetLength(0)); for (int p = 0; p < 1000; ++p) { int even = evenOddPairs[p, 0]; int odd = evenOddPairs[p, 1]; Assert.IsTrue(even % 2 == 0); Assert.IsTrue(odd % 2 == 1); Assert.IsTrue(even >= 1 && even <= 1000); Assert.IsTrue(odd >= 1 && odd <= 1000); } evenOddPairs = InputGenerator.GenerateRandomEvenOddPairs(1000, 0, 1); Assert.AreEqual(1000, evenOddPairs.GetLength(0)); for (int p = 0; p < 1000; ++p) { int even = evenOddPairs[p, 0]; int odd = evenOddPairs[p, 1]; Assert.AreEqual(0, even); Assert.AreEqual(1, odd); } }