コード例 #1
0
        public void GetCustomNumbers()
        {
            string[]      arr          = { "0", "1", "2", "C", "4", "E" };
            List <string> expectedList = arr.ToList <string>();

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