public void VerifyThatWhenRequirementIsNotContainedAContainmentExceptionIsThrown() { var requirement = new Requirement() { ShortName = "REQA" }; Assert.Throws <ContainmentException>(() => requirement.BreadCrumb()); }
public void VerifyThatBreadCrumbOfNonGroupRequirementCanBeComputed() { var requirement = new Requirement() { ShortName = "REQA" }; this.requirementsSpecification.Requirement.Add(requirement); Assert.AreEqual("S:URD.R:REQA", requirement.BreadCrumb()); }
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()); }