예제 #1
0
파일: Help.cs 프로젝트: keutmann/wspbuilder
        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);
        }
예제 #2
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);
        }
예제 #3
0
        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);
        }