public void ShouldSaveProject()
        {
            //Arrange
            string projectName = "testProj";
            string description = "desc123";
            string company     = "MBD VC";
            string website     = "http://mypage.com";
            string startDate   = "2018-06-01";

            ganttProjectBuilder.Set(projectName, description, company, website);
            ganttGraphicAreaBuilder.Set(startDate);
            uiFacadeBuilder.Set(0, 656, 300);

            //Act
            sut = BuildSut();
            sut.Save(null);

            GantXMLOpen open = new GantXMLOpen();

            open.Load();

            //Assert
            Assert.AreEqual(projectName, open.myProject.ProjectName);
            Assert.AreEqual(description, open.myProject.Description);
            Assert.AreEqual(company, open.myProject.Organization);
            Assert.AreEqual(website, open.myProject.MyWebLink);
        }
示例#2
0
        private void testGanttProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GanttProject project = new GanttProject();

            var xmlsXaver = new GanttXMLSaver(null, null, null, null, null);

            xmlsXaver.Save(null);
        }