示例#1
0
        public void GetOddNumbers()
        {
            int[]      arr          = { 1, 3, 5 };
            List <int> expectedList = arr.ToList <int>();

            CollectionAssert.AreEqual(expectedList, GenerateNumbers.GetOddNumbers(5));
        }
示例#2
0
 public void GetOddNumbersWithNullArgument()
 {
     Assert.AreEqual(null, GenerateNumbers.GetOddNumbers(-19));
 }