public void EvenEnsureNumsInListAreAllEven() { Even test = new Even(); test.CreateNumbers(1000); Assert.IsTrue(test.Numbers.Any(n => n % 2 == 0)); }
public void EvenEnsureNumsAreNotOdd() { Even test = new Even(); test.CreateNumbers(1000); Assert.IsFalse(test.Numbers.Any(n => n % 2 != 0)); }
public void EvenNumsOutputsUserSpecifiedQuantity() { Even outputEvens = new Even(); outputEvens.CreateNumbers(7); Assert.AreEqual(7, outputEvens.Numbers.Count); }