Example #1
0
        public void checkForMultipleSystemAndIncreasingSequence()
        {
            string[]            systemNames = new string[] { "stage_1", "stage_2", "stage_1", "stage_2" };
            int[]               stepNumbers = new int[] { 1, 2, 9, 10 };
            checkLaunchSequence cLS         = new checkLaunchSequence();
            bool expected = cLS.launchSequenceChecker(systemNames, stepNumbers);

            Assert.AreEqual(expected, true);
        }
Example #2
0
        public void checkIfIncreasingSequenceForASystemReturnsTrue()
        {
            string[]            systemNames = new string[] { "stage_1", "stage_1" };
            int[]               stepNumbers = new int[] { 1, 2 };
            checkLaunchSequence cLS         = new checkLaunchSequence();

            var expected = cLS.launchSequenceChecker(systemNames, stepNumbers);

            Assert.AreEqual(expected, true);
        }
Example #3
0
        public void checkIfEmptyArrayInputReturnsCorrectReturnDatatype()
        {
            string[]            systemNames = new string[] { };
            int[]               stepNumbers = new int[] { };
            checkLaunchSequence cLS         = new checkLaunchSequence();

            var expected = cLS.launchSequenceChecker(systemNames, stepNumbers);

            Assert.AreEqual(expected, true);
        }