예제 #1
0
        public void TestFilterDigitMax()
        {
            var value7 = FilterDigitCls.FilterDigit(int.MaxValue, int.MaxValue, int.MinValue, 10, -10, 0, 150, 7984900, int.MinValue, int.MinValue, int.MaxValue, int.MaxValue);

            Assert.IsTrue(CheckArrays(new int[] { int.MaxValue, int.MaxValue, int.MaxValue }, value7));
        }
예제 #2
0
        public void TestFilterDigit()
        {
            var value7 = FilterDigitCls.FilterDigit(7, 1, 2, 3, 4, 5, 6, 7, 68, 69, 70, 15, 17);

            Assert.IsTrue(CheckArrays(new int[] { 7, 70, 17 }, value7));
        }
예제 #3
0
 public void TestFilterDigitNull()
 {
     Assert.ThrowsException <ArgumentNullException>(() => FilterDigitCls.FilterDigit(7, null));
 }
예제 #4
0
 public int[] TestFilterDigit(int main, params int[] arr)
 {
     return(FilterDigitCls.FilterDigit(main, arr));
 }