Beispiel #1
0
        public void OneJobPermutations()
        {
            var           jobPermutations = new JobPermutations();
            List <string> permutations    = new List <string> {
                "a-"
            };

            Assert.That(jobPermutations.GetPermutations("a-"), Is.EqualTo(permutations));
        }
Beispiel #2
0
        public void ThreeJobPermutations()
        {
            var           jobPermutations = new JobPermutations();
            List <string> permutations    = new List <string> {
                "a-|b-a|c-a", "b-a|a-|c-a", "c-a|a-|b-a", "a-|c-a|b-a", "b-a|c-a|a-", "c-a|b-a|a-"
            };

            Assert.That(jobPermutations.GetPermutations("a-|b-a|c-a"), Is.EqualTo(permutations));
        }
        private async Task <TestCasePermutationResults> BuildTestCasePermutation(string url, string testCase)
        {
            List <TestCaseValidation> testCaseResults = new List <TestCaseValidation>();
            var           jobPermutations             = new JobPermutations();
            List <string> testCasePermutationsList    = jobPermutations.GetPermutations(testCase);

            foreach (string testCasePermutation in testCasePermutationsList)
            {
                testCaseResults.Add(await GetTestCaseValidation(url, testCasePermutation));
            }
            return(new TestCasePermutationResults(testCase, testCaseResults));
        }