Exemplo n.º 1
0
 public EstimationSettings()
 {
     InitializeComponent();
     UMLProject project = UMLProject.GetInstance();
     _phases = project.GetUMLPhases();            
     this.uMLPhaseCollectionBindingSource.DataSource = _phases;
     if (_phases.Count < 1)
         this.btnGenerate.Enabled = false;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes collections
 /// </summary>
 private void InitCollections()
 {
     addMessageBackgroundWorker(0, "Init import...");
     Phases         = new UMLPhaseCollection();
     Iterations     = new UMLIterationCollection();
     Files          = new UMLFileCollection();
     UseCases       = new UMLUseCaseCollection();
     Collaborations = new UMLCollaborationCollection();
     Packages       = new UMLPackageCollection();
 }
Exemplo n.º 3
0
        public EstimationSettings()
        {
            InitializeComponent();
            UMLProject project = UMLProject.GetInstance();

            _phases = project.GetUMLPhases();
            this.uMLPhaseCollectionBindingSource.DataSource = _phases;
            if (_phases.Count < 1)
            {
                this.btnGenerate.Enabled = false;
            }
        }
Exemplo n.º 4
0
        public void TestEsmtition3()
        {
            //Helper.OpenFile(Path.GetDirectoryName(@"C:\Temp\Emanuel\Desarrollo\ProjectoDesarrollo\PES\TUPUX.Test\bin\Debug\TestProjects\Test1.uml"));

            UMLProject project = UMLProject.GetInstance();

            UMLPhaseCollection phases = project.GetUMLPhases();

            foreach (UMLPhase phase in phases)
            {
                phase.LoadCollections();
                phase.EstimateFunctionPoints();
                phase.SaveEdit();
            }

            foreach (UMLPhase phase in phases)
            {
                if (phase.Name.Equals("PhaseClass1"))
                {
                    Assert.AreEqual(2, phase.Iterations.Count);
                    Assert.AreEqual(20, phase.ActionFunctionPoints);
                    Assert.AreEqual(31, phase.FileFunctionPoints);

                    foreach (UMLIteration iteration in phase.Iterations)
                    {
                        if (iteration.Name.Equals("Iteration 1"))
                        {
                            Assert.AreEqual(12, iteration.ActionFunctionPoints);
                            Assert.AreEqual(22.5, iteration.FileFunctionPoints);

                            //foreach (UMLCollaboration col in iteration.CollaborationsInUseCases)
                            //{
                            //    if (col.Name.Equals("Collaboration11"))
                            //    {
                            //        Assert.AreEqual(6, col.ActionFunctionPoints);
                            //        Assert.AreEqual(10.5, col.FilesFunctionPoints);
                            //        continue;
                            //    }

                            //    if (col.Name.Equals("Collaboration12"))
                            //    {
                            //        Assert.AreEqual(6, col.ActionFunctionPoints);
                            //        Assert.AreEqual(12, col.FilesFunctionPoints);
                            //    }
                            //}
                            continue;
                        }

                        if (iteration.Name.Equals("Iteration 2"))
                        {
                            Assert.AreEqual(8, iteration.ActionFunctionPoints);
                            Assert.AreEqual(8.5, iteration.FileFunctionPoints);

                            //foreach (UMLCollaboration col in iteration.CollaborationsInUseCases)
                            //{
                            //    if (col.Name.Equals("Collaboration21"))
                            //    {
                            //        Assert.AreEqual(4, col.ActionFunctionPoints);
                            //        Assert.AreEqual(3.5, col.FilesFunctionPoints);
                            //    }

                            //    if (col.Name.Equals("Collaboration22"))
                            //    {
                            //        Assert.AreEqual(4, col.ActionFunctionPoints);
                            //        Assert.AreEqual(5, col.FilesFunctionPoints);
                            //    }
                            //}
                        }
                    }
                }
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes collections
 /// </summary>
 private void InitCollections()
 {
     addMessageBackgroundWorker(0, "Init import...");
     Phases = new UMLPhaseCollection();
     Iterations = new UMLIterationCollection();
     Files = new UMLFileCollection();
     UseCases = new UMLUseCaseCollection();
     Collaborations = new UMLCollaborationCollection();
     Packages= new UMLPackageCollection();
 }