public void ShowExtractwsp() { // Setup WSPBuilderHandler wspBuilder = new WSPBuilderHandler(""); // Run First test string[] args = new string[] { "-o", "Help", "-operation", "Extractwsp" }; int error = wspBuilder.BuildCommand(args); // Test Assert.IsTrue(error == 0); }
public void InvalidParameters() { // Setup WSPBuilderHandler wspBuilder = new WSPBuilderHandler(PROJECTNAME); wspBuilder.ProjectPath = TestInvironment.ProjectsPath + @"\" + PROJECTNAME; // Run First test string[] args = new string[] { "-o", "CopyToGAC", "raceLevel", "Verbose" }; int error = wspBuilder.BuildCommand(args); // Test Assert.IsTrue(error == 1); // Run First test args = new string[] { "-o", "CopyToGAC", "-traceLevel", "sdfsd" }; error = wspBuilder.BuildCommand(args); // Test Assert.IsTrue(error == 1); }
public void InstallAssembly() { // Setup WSPBuilderHandler wspBuilder = new WSPBuilderHandler(PROJECTNAME); string[] args = new string[] { "-o", "CopyToGAC", "-traceLevel", "Verbose" }; wspBuilder.ProjectPath = TestInvironment.ProjectsPath + @"\" + PROJECTNAME; // Run int error = wspBuilder.BuildCommand(args); // Test Assert.IsTrue(error == 0); }