Ejemplo n.º 1
0
        public void CreatePhase()
        {
            UMLProject project = null;

            project = UMLProject.GetInstance();
            List <IUMLElement> elements = project.GetOwnedElements();

            if (elements.Count > 0)
            {
                UMLPhase phase = new UMLPhase();
                phase.Owner = elements[0];
                phase.Name  = "Phase Test";
                phase.SaveEdit();
                Assert.AreNotEqual(null, phase);
                Assert.AreNotEqual(String.Empty, phase.Guid);
                Assert.AreNotEqual(null, phase.Guid);
                Assert.AreEqual("Phase Test", phase.Name);
                Assert.AreNotEqual(String.Empty, phase.PathName);
                Assert.AreNotEqual(null, phase.PathName);
            }
        }
Ejemplo n.º 2
0
        public void CreatePhase()
        {
            UMLProject project = null;
            project = UMLProject.GetInstance();
            List<IUMLElement> elements = project.GetOwnedElements();

            if (elements.Count > 0)
            {
                UMLPhase phase = new UMLPhase();
                phase.Owner = elements[0];
                phase.Name = "Phase Test";
                phase.SaveEdit();
                Assert.AreNotEqual(null, phase);
                Assert.AreNotEqual(String.Empty, phase.Guid);
                Assert.AreNotEqual(null, phase.Guid);
                Assert.AreEqual("Phase Test", phase.Name);
                Assert.AreNotEqual(String.Empty, phase.PathName);
                Assert.AreNotEqual(null, phase.PathName);
            }
        }