public void MessageCategoryDisplaysUnitTestApplicationCommandLine()
        {
            runCommand.Run();
            buildProject.FireBuildCompleteEvent();
            string fullCommandLine      = helper.GetCommandLine();
            string expectedCategoryText = fullCommandLine + "\r\n";

            Assert.AreEqual(expectedCategoryText, context.UnitTestCategory.Text);
        }
Example #2
0
        public void FullCommandLine()
        {
            NUnitConsoleApplication app = new NUnitConsoleApplication(new[] { testProject });

            app.NoLogo          = true;
            app.ShadowCopy      = true;
            app.NoXmlOutputFile = false;

            FileUtility.ApplicationRootPath = @"C:\SharpDevelop";

            string expectedFullCommandLine =
                "\"C:\\SharpDevelop\\bin\\Tools\\NUnit\\nunit-console-x86.exe\" " +
                "\"C:\\Projects\\MyTests\\MyTests.dll\" " +
                "/nologo";

            Assert.AreEqual(expectedFullCommandLine, app.GetCommandLine());
        }