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