예제 #1
0
        public void EmptyArgument()
        {
            List <int> input = new List <int> {
            };

            NumberSort.FilterDigit(input);
        }
예제 #2
0
        public void TestMethod1()
        {
            List <int> input = new List <int>()
            {
                7, 1, 2, 3, 4, 5, 6, 7, 68, 69, 70, 15, 17
            };
            List <int> result = new List <int>()
            {
                7, 70, 17
            };

            NumberSort.FilterDigit(input);

            for (int i = 0; i < result.Count; i++)
            {
                Assert.AreEqual(input[i], result[i]);
            }
        }
예제 #3
0
        public void ArgumentNull()
        {
            List <int> input = null;

            NumberSort.FilterDigit(input);
        }