Exemplo n.º 1
0
		string GetCommandLine()
		{
			ITest test = selectedTests.FirstOrDefault();
			
			var commandLine = new MSTestApplicationCommandLine();
			commandLine.AppendQuoted("testcontainer", test.ParentProject.Project.OutputAssemblyFullPath);
			commandLine.AppendQuoted("resultsfile", resultsFileName);
			commandLine.Append("detail", "errorstacktrace");
			if (test is TestNamespace) {
				commandLine.Append("test", ((TestNamespace)test).NamespaceName);
			} else if (test is MSTestMember) {
				commandLine.Append("test", ((MSTestMember)test).Member.FullName);
			} else if (test is MSTestClass) {
				commandLine.Append("test", ((MSTestClass)test).GetTypeName());
			}
			return commandLine.ToString();
		}
        string GetCommandLine()
        {
            var commandLine = new MSTestApplicationCommandLine();

            commandLine.AppendQuoted("testcontainer", selectedTests.Project.OutputAssemblyFullPath);
            commandLine.AppendQuoted("resultsfile", resultsFileName);
            commandLine.Append("detail", "errorstacktrace");
            if (selectedTests.NamespaceFilter != null)
            {
                commandLine.Append("test", selectedTests.NamespaceFilter);
            }
            else if (selectedTests.Member != null)
            {
                commandLine.Append("test", selectedTests.Member.FullyQualifiedName);
            }
            else if (selectedTests.Class != null)
            {
                commandLine.Append("test", selectedTests.Class.FullyQualifiedName);
            }
            return(commandLine.ToString());
        }
Exemplo n.º 3
0
        string GetCommandLine()
        {
            ITest test = selectedTests.FirstOrDefault();

            var commandLine = new MSTestApplicationCommandLine();

            commandLine.AppendQuoted("testcontainer", test.ParentProject.Project.OutputAssemblyFullPath);
            commandLine.AppendQuoted("resultsfile", resultsFileName);
            commandLine.Append("detail", "errorstacktrace");
            if (test is TestNamespace)
            {
                commandLine.Append("test", ((TestNamespace)test).NamespaceName);
            }
            else if (test is MSTestMember)
            {
                commandLine.Append("test", ((MSTestMember)test).Member.FullName);
            }
            else if (test is MSTestClass)
            {
                commandLine.Append("test", ((MSTestClass)test).GetTypeName());
            }
            return(commandLine.ToString());
        }