Пример #1
0
        public void Test3()
        {
            int[] a = new int[] { 5, 4, 3, 2, 1 };
            int[] b = new int[] { 1, 4, 9, 16, 25 };
            bool  r = AreTheySame.comp(a, b); // True

            Assert.AreEqual(true, r);
        }
Пример #2
0
        public void Test4()
        {
            int[] a = null;
            int[] b = new int[] { 1, 4, 9, 16, 25 };
            bool  r = AreTheySame.comp(a, b); // True

            Assert.AreEqual(false, r);
        }
Пример #3
0
        public void Test2()
        {
            int[] a = new int[] { 120, 144, 19, 161, 19, 144, 19, 11 };
            int[] b = new int[] { 11 * 11, 121 * 121, 144 * 144, 19 * 19, 161 * 161, 19 * 19, 144 * 144, 19 * 19 };
            bool  r = AreTheySame.comp(a, b); // True

            Assert.AreEqual(false, r);
        }