Exemplo n.º 1
0
        public void FetchOrAddStandard_NewStandard_ReturnStandard()
        {
            RuleResult ruleResult = GenerateRuleResult();

            string[] addedStandard = ResultsFileSarifMapper.FetchOrAddStandards(ruleResult);
            string   standardKey   = "4.1.2";

            Assert.IsTrue(ResultsFileSarifMapper.A11yCriteriaList.ContainsKey(standardKey));
        }
Exemplo n.º 2
0
        public void FetchOrAddStandard_StandardExists_ReturnStandard()
        {
            RuleResult ruleResult = GenerateRuleResult();

            string[] addedStandard      = ResultsFileSarifMapper.FetchOrAddStandards(ruleResult);
            string[] retrievedStandards = ResultsFileSarifMapper.FetchOrAddStandards(ruleResult);
            Assert.AreEqual(addedStandard[0], retrievedStandards[0]);
            string standardKey = "4.1.2";

            Assert.IsTrue(ResultsFileSarifMapper.A11yCriteriaList.ContainsKey(standardKey));
        }