Exemple #1
0
        public void VerifyThatWhenRequirementIsNotContainedAContainmentExceptionIsThrown()
        {
            var requirement = new Requirement()
            {
                ShortName = "REQA"
            };

            Assert.Throws <ContainmentException>(() => requirement.BreadCrumb());
        }
Exemple #2
0
        public void VerifyThatBreadCrumbOfNonGroupRequirementCanBeComputed()
        {
            var requirement = new Requirement()
            {
                ShortName = "REQA"
            };

            this.requirementsSpecification.Requirement.Add(requirement);

            Assert.AreEqual("S:URD.R:REQA", requirement.BreadCrumb());
        }
Exemple #3
0
        public void VerifyThatBreadCrumbOfGroupRequirementCanBeComputed()
        {
            var requirement = new Requirement()
            {
                ShortName = "REQA"
            };

            this.requirementsSpecification.Requirement.Add(requirement);

            var requirementsGroupA = new RequirementsGroup()
            {
                ShortName = "GRPA"
            };

            this.requirementsSpecification.Group.Add(requirementsGroupA);

            requirement.Group = requirementsGroupA;

            Assert.AreEqual("S:URD.RG:GRPA.R:REQA", requirement.BreadCrumb());
        }