コード例 #1
0
        public void GetAllNumbers()
        {
            int[]      arr          = { 0, 1, 2, 3, 4, 5 };
            List <int> expectedList = arr.ToList <int>();

            CollectionAssert.AreEqual(expectedList, GenerateNumbers.GetAllNumbers(5));
        }
コード例 #2
0
 public void GetAllNumbersWithNullArgument()
 {
     Assert.AreEqual(null, GenerateNumbers.GetAllNumbers(-19));
 }