Exemple #1
0
        public void GetEvenNumbers()
        {
            int[]      arr          = { 2, 4 };
            List <int> expectedList = arr.ToList <int>();

            CollectionAssert.AreEqual(expectedList, GenerateNumbers.GetEvenNumbers(5));
        }
Exemple #2
0
 public void GetEvenNumbersWithNullArgument()
 {
     Assert.AreEqual(null, GenerateNumbers.GetEvenNumbers(-19));
 }