public void GetOddNumbers() { int[] arr = { 1, 3, 5 }; List <int> expectedList = arr.ToList <int>(); CollectionAssert.AreEqual(expectedList, GenerateNumbers.GetOddNumbers(5)); }
public void GetOddNumbersWithNullArgument() { Assert.AreEqual(null, GenerateNumbers.GetOddNumbers(-19)); }