コード例 #1
0
        public void TestArraysEmpty()
        {
            int[] a = new int[] {};
            int[] b = new int[] {};
            bool  r = AreTheySame.comp(a, b); // True

            Assert.AreEqual(true, r);
        }
コード例 #2
0
        public void TestBad()
        {
            int[] a = new int[] { 132, 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);
        }
コード例 #3
0
        public void TestArraysNull()
        {
            int[] a = null;
            int[] b = null;
            bool  r = AreTheySame.comp(a, b); // True

            Assert.AreEqual(false, r);
        }