예제 #1
0
        public void FindCGDForShortArraySuccess()
        {
            int[] array = { 5 };
            int   cgd   = 5;

            Assert.AreEqual(cgd, NumberTheory.FindCGDForArrayElements(array));
        }
예제 #2
0
        public void FindCGDForNullArray()
        {
            int cgd = 1;

            Assert.AreEqual(cgd, NumberTheory.FindCGDForArrayElements(null));
        }