public void GetEvenNumbers() { int[] arr = { 2, 4 }; List <int> expectedList = arr.ToList <int>(); CollectionAssert.AreEqual(expectedList, GenerateNumbers.GetEvenNumbers(5)); }
public void GetEvenNumbersWithNullArgument() { Assert.AreEqual(null, GenerateNumbers.GetEvenNumbers(-19)); }