本文整理汇总了C#中ICSharpCode.UnitTesting.SelectedTests类的典型用法代码示例。如果您正苦于以下问题:C# SelectedTests类的具体用法?C# SelectedTests怎么用?C# SelectedTests使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SelectedTests类属于ICSharpCode.UnitTesting命名空间,在下文中一共展示了SelectedTests类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StartTestRunner
void StartTestRunner()
{
FileUtility.ApplicationRootPath = @"d:\sharpdevelop";
MockCSharpProject project = new MockCSharpProject();
SelectedTests tests = new SelectedTests(project);
testRunner.Start(tests);
}
示例2: GetProcessStartInfo
protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
{
NUnitConsoleApplication app = new NUnitConsoleApplication(selectedTests, options);
testResultsMonitor = new TestResultsMonitor();
app.Results = testResultsMonitor.FileName;
return app.GetProcessStartInfo();
}
示例3: GetProcessStartInfo
protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
{
resultsFileName = new MSTestResultsFileName(selectedTests).FileName;
CreateDirectoryForResultsFile();
var mstestApplication = new MSTestApplication(selectedTests, resultsFileName);
return mstestApplication.ProcessStartInfo;
}
示例4: NothingSpecified
public void NothingSpecified()
{
MockCSharpProject project = new MockCSharpProject();
SelectedTests selectedTests = new SelectedTests(project);
NUnitConsoleApplication app = new NUnitConsoleApplication(selectedTests);
Assert.AreEqual(@"D:\SharpDevelop\bin\Tools\NUnit\nunit-console-x86.exe", app.FileName);
}
示例5: GetProcessStartInfo
protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
{
GallioEchoConsoleApplicationProcessStartInfo startInfo =
new GallioEchoConsoleApplicationProcessStartInfo(selectedTests, base.TestResultsMonitor.FileName);
startInfo.ProcessStartInfo.Arguments += " /d";
return startInfo.ProcessStartInfo;
}
示例6: GetFileName
string GetFileName(SelectedTests selectedTests)
{
return Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
"Temp",
selectedTests.Project.Name + "-Results.trx");
}
示例7: Init
public void Init()
{
project = new MockCSharpProject();
c = new MockClass();
method = new MockMethod(c);
selectedTests = new SelectedTests(project, namespaceFilter, c, method);
}
示例8: CreateProcessStartInfo
public ProcessStartInfo CreateProcessStartInfo(SelectedTests selectedTests)
{
consoleApplication.PythonScriptFileName = GetSharpDevelopTestPythonScriptFileName();
consoleApplication.PythonScriptCommandLineArguments = GetResponseFileNameCommandLineArgument();
consoleApplication.WorkingDirectory = selectedTests.Project.Directory;
return consoleApplication.GetProcessStartInfo();
}
示例9: CreateResponseFile
public void CreateResponseFile(SelectedTests selectedTests)
{
CreateResponseFile();
using (responseFile) {
WriteTests(selectedTests);
}
}
示例10: CreateNUnitConsoleApplication
void CreateNUnitConsoleApplication()
{
MockCSharpProject project = new MockCSharpProject();
selectedTests = new SelectedTests(project);
options = new UnitTestingOptions(new Properties());
nunitConsoleApp = new NUnitConsoleApplication(selectedTests, options);
}
示例11: CreatePartCoverApplication
void CreatePartCoverApplication(SelectedTests selectedTests)
{
NUnitConsoleApplication nunitConsoleApp = new NUnitConsoleApplication(selectedTests, options);
nunitConsoleApp.Results = base.TestResultsMonitor.FileName;
PartCoverSettings settings = settingsFactory.CreatePartCoverSettings(selectedTests.Project);
partCoverApplication = new PartCoverApplication(nunitConsoleApp, settings);
}
示例12: RunTestsOnSelectedTestMethod
void RunTestsOnSelectedTestMethod()
{
fileService.SetTempFileName(@"d:\temp\tmp66.tmp");
CreateTemporaryResponseFileWriter();
selectedTests = new SelectedTests(project, null, null, methodToTest);
testRunner.Start(selectedTests);
}
示例13: NUnitTestRunnerCreatedWithMockTestResultsMonitor
public void NUnitTestRunnerCreatedWithMockTestResultsMonitor()
{
MockCSharpProject project = new MockCSharpProject();
SelectedTests tests = new SelectedTests(project);
testRunner.Start(tests);
Assert.IsTrue(context.MockTestResultsMonitor.IsStartMethodCalled);
}
示例14: Init
public void Init()
{
MockCSharpProject project = new MockCSharpProject();
SelectedTests selectedTests = new SelectedTests(project);
NUnitConsoleApplication app = new NUnitConsoleApplication(selectedTests);
info = app.GetProcessStartInfo();
}
示例15: CreateProcessStartInfo
public ProcessStartInfo CreateProcessStartInfo(SelectedTests selectedTests)
{
consoleApplication.ScriptFileName = GetSharpDevelopTestRubyScriptFileName();
AddLoadPaths(selectedTests.Project);
consoleApplication.ScriptCommandLineArguments = GetCommandLineArguments(selectedTests);
consoleApplication.WorkingDirectory = selectedTests.Project.Directory;
return consoleApplication.GetProcessStartInfo();
}