Exemplo n.º 1
0
        public void TestSpecificationReadRequirement()
        {
            Specification spec = new Specification();

            spec.ReadRequirement("prod2,prot1 story1 info,prod5 user2 1 555 0");
            Specification expectedSpecification = new Specification();

            expectedSpecification.ProductName = "prod2";
            Prototype prototypeToAdd = new Prototype("prod5 user2 1 555 0");

            expectedSpecification.AddPrototype(prototypeToAdd);
            UserStory story = new UserStory("prot1 story1 info");

            expectedSpecification.AddUserStory(story);
            Assert.AreEqual(expectedSpecification.ToString(), spec.ToString());
        }