Beispiel #1
0
        public void TestIsContrain5and6()
        {
            int[] arr1 = new int[] { 1, 2, 3, 4, 5 };
            bool  rs1  = Program2.IsContrain5and6(arr1);

            Assert.AreEqual(false, rs1);

            int[] arr2 = new int[] { 1, 2, 3, 4, 6 };
            bool  rs2  = Program2.IsContrain5and6(arr2);

            Assert.AreEqual(false, rs2);

            int[] arr3 = new int[] { 1, 2, 3, 4, 5, 6 };
            bool  rs3  = Program2.IsContrain5and6(arr3);

            Assert.AreEqual(true, rs3);

            int[] arr4 = new int[] { 1, 2, 3, 4 };
            bool  rs4  = Program2.IsContrain5and6(arr4);

            Assert.AreEqual(false, rs4);
        }