public void Init()
        {
            MockCSharpProject            project       = new MockCSharpProject();
            SelectedTests                selectedTests = new SelectedTests(project);
            GallioEchoConsoleApplication app           = new GallioEchoConsoleApplication(selectedTests, @"d:\gallio\Gallio.Echo.exe");

            info = app.GetProcessStartInfo();
        }
        public void CommandLineIncludesProjectOutputAssembly()
        {
            GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);

            string expectedArgs =
                "/rv:v4.0.30319 " +
                "\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";

            Assert.AreEqual(expectedArgs, app.GetArguments());
        }
		public void CommandLineIncludesProjectOutputAssembly()
		{
			GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);
			
			string expectedArgs =
				"/rv:v4.0.30319 " +
				"\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";
			
			Assert.AreEqual(expectedArgs, app.GetArguments());
		}
		public void TestRunnerExtensionWithoutParametersAddedToCommandLine()
		{
			TestRunnerExtensionCommandLineArgument arg =
				new TestRunnerExtensionCommandLineArgument("MyNamespace.MyTestExtension,MyTestRunner.dll");
			
			GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);
			app.TestRunnerExtensions.Add(arg);
			
			string expectedArgs =
				"/rv:v4.0.30319 " +
				"/re:\"MyNamespace.MyTestExtension,MyTestRunner.dll\" " +
				"\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";
			
			Assert.AreEqual(expectedArgs, app.GetArguments());
		}
        public void TestRunnerExtensionWithoutParametersAddedToCommandLine()
        {
            TestRunnerExtensionCommandLineArgument arg =
                new TestRunnerExtensionCommandLineArgument("MyNamespace.MyTestExtension,MyTestRunner.dll");

            GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);

            app.TestRunnerExtensions.Add(arg);

            string expectedArgs =
                "/rv:v4.0.30319 " +
                "/re:\"MyNamespace.MyTestExtension,MyTestRunner.dll\" " +
                "\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";

            Assert.AreEqual(expectedArgs, app.GetArguments());
        }
		public void SharpDevelopTestRunnerExtensionAddedToCommandLine()
		{
			SharpDevelopTestRunnerExtensionCommandLineArgument arg =
				new SharpDevelopTestRunnerExtensionCommandLineArgument();
			arg.TestResultsFileName = @"c:\temp\tmp66.tmp";
			
			GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);
			app.TestRunnerExtensions.Add(arg);
			
			string expectedArgs =
				"/rv:v4.0.30319 " +
				"/re:\"Gallio.Extension.SharpDevelopTestRunnerExtension,Gallio.Extension.dll;c:\\temp\\tmp66.tmp\" " +
				"\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";
			
			Assert.AreEqual(expectedArgs, app.GetArguments());
		}
        public void SharpDevelopTestRunnerExtensionAddedToCommandLine()
        {
            SharpDevelopTestRunnerExtensionCommandLineArgument arg =
                new SharpDevelopTestRunnerExtensionCommandLineArgument();

            arg.TestResultsFileName = @"c:\temp\tmp66.tmp";

            GallioEchoConsoleApplication app = new GallioEchoConsoleApplication(selectedTests);

            app.TestRunnerExtensions.Add(arg);

            string expectedArgs =
                "/rv:v4.0.30319 " +
                "/re:\"Gallio.Extension.SharpDevelopTestRunnerExtension,Gallio.Extension.dll;c:\\temp\\tmp66.tmp\" " +
                "\"c:\\projects\\MyTests\\bin\\Debug\\MyTests.dll\"";

            Assert.AreEqual(expectedArgs, app.GetArguments());
        }
Ejemplo n.º 8
0
        public void Init()
        {
            MockCSharpProject project = new MockCSharpProject();
            SelectedTests     tests   = new SelectedTests(project);

            gallioEchoConsoleFileName = @"d:\gallio\bin\Gallio.Echo.exe";
            addinTreePath             = GallioEchoConsoleApplicationFactory.AddInTreePath;

            addinTree = new MockAddInTree();
            List <string> items = new List <string>();

            items.Add(gallioEchoConsoleFileName);

            addinTree.AddItems <string>(addinTreePath, items);

            GallioEchoConsoleApplicationFactory factory = new GallioEchoConsoleApplicationFactory(addinTree);

            app = factory.Create(tests);
        }