public void NewProjectFromCommandLineInterface() { string[] args = { "-bugzillaxml", "..\\UnitTests\\artifacts\\single_bug.xml", "-newproject", "..\\UnitTests\\artifacts\\new_cli_Test_0.mpp" }; MSProject simpleProj = new MSProject(); simpleProj.CommandLineInterface(args); simpleProj = null; Assert.IsTrue(System.IO.File.Exists("..\\UnitTests\\artifacts\\new_cli_Test_0.mpp")); System.IO.File.Delete("..\\UnitTests\\artifacts\\new_cli_Test_0.mpp"); }
public void ExistingProjectFromCommandLineInterface() { string[] args = { "-bugzillaxml", "..\\UnitTests\\artifacts\\single_bug.xml", "-ExistingProject", "..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp" }; if (System.IO.File.Exists("..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp")) { System.IO.File.Delete("..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp"); } System.IO.File.Copy("..\\UnitTests\\artifacts\\MSProject_Test_0.mpp", "..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp"); MSProject simpleProj = new MSProject(); simpleProj.CommandLineInterface(args); simpleProj = null; Assert.IsTrue(System.IO.File.Exists("..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp")); System.IO.File.Delete("..\\UnitTests\\artifacts\\ExistingFileCLI_Test_0.mpp"); }