当前位置: 首页>>代码示例>>C#>>正文


C# UnitTesting.SelectedTests类代码示例

本文整理汇总了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);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:CodeCoverageTestRunnerTests.cs

示例2: GetProcessStartInfo

		protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
		{
			NUnitConsoleApplication app = new NUnitConsoleApplication(selectedTests, options);
			testResultsMonitor = new TestResultsMonitor();
			app.Results = testResultsMonitor.FileName;
			return app.GetProcessStartInfo();
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:ProfilerTestRunner.cs

示例3: GetProcessStartInfo

		protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
		{
			resultsFileName = new MSTestResultsFileName(selectedTests).FileName;
			CreateDirectoryForResultsFile();
			var mstestApplication = new MSTestApplication(selectedTests, resultsFileName);
			return mstestApplication.ProcessStartInfo;
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:MSTestRunner.cs

示例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);
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:NUnitConsoleExeSelectedTestFixture.cs

示例5: GetProcessStartInfo

		protected override ProcessStartInfo GetProcessStartInfo(SelectedTests selectedTests)
		{
			GallioEchoConsoleApplicationProcessStartInfo startInfo = 
				new GallioEchoConsoleApplicationProcessStartInfo(selectedTests, base.TestResultsMonitor.FileName);
			startInfo.ProcessStartInfo.Arguments += " /d";
			return startInfo.ProcessStartInfo;
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:GallioTestDebugger.cs

示例6: GetFileName

		string GetFileName(SelectedTests selectedTests)
		{
			return Path.Combine(
				Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
				"Temp",
				selectedTests.Project.Name + "-Results.trx");
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:MSTestResultsFileName.cs

示例7: Init

		public void Init()
		{
			project = new MockCSharpProject();
			c = new MockClass();
			method = new MockMethod(c);
			selectedTests = new SelectedTests(project, namespaceFilter, c, method);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:SelectedTestsTestFixture.cs

示例8: CreateProcessStartInfo

		public ProcessStartInfo CreateProcessStartInfo(SelectedTests selectedTests)
		{
			consoleApplication.PythonScriptFileName = GetSharpDevelopTestPythonScriptFileName();
			consoleApplication.PythonScriptCommandLineArguments = GetResponseFileNameCommandLineArgument();
			consoleApplication.WorkingDirectory = selectedTests.Project.Directory;
			return consoleApplication.GetProcessStartInfo();
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:PythonTestRunnerApplication.cs

示例9: CreateResponseFile

		public void CreateResponseFile(SelectedTests selectedTests)
		{
			CreateResponseFile();
			using (responseFile) {
				WriteTests(selectedTests);
			}
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:7,代码来源:RubyTestRunnerApplication.cs

示例10: CreateNUnitConsoleApplication

		void CreateNUnitConsoleApplication()
		{
			MockCSharpProject project = new MockCSharpProject();
			selectedTests = new SelectedTests(project);
			
			options = new UnitTestingOptions(new Properties());
			nunitConsoleApp = new NUnitConsoleApplication(selectedTests, options);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:8,代码来源:PartCoverApplicationTests.cs

示例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);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:8,代码来源:CodeCoverageTestRunner.cs

示例12: RunTestsOnSelectedTestMethod

		void RunTestsOnSelectedTestMethod()
		{
			fileService.SetTempFileName(@"d:\temp\tmp66.tmp");
			CreateTemporaryResponseFileWriter();
			
			selectedTests = new SelectedTests(project, null, null, methodToTest);
			testRunner.Start(selectedTests);
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:8,代码来源:PythonTestRunnerRunsSelectedTestMethodTestFixture.cs

示例13: NUnitTestRunnerCreatedWithMockTestResultsMonitor

		public void NUnitTestRunnerCreatedWithMockTestResultsMonitor()
		{
			MockCSharpProject project = new MockCSharpProject();
			SelectedTests tests = new SelectedTests(project);
			testRunner.Start(tests);
			
			Assert.IsTrue(context.MockTestResultsMonitor.IsStartMethodCalled);
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:8,代码来源:MockNUnitTestFrameworkTestFixture.cs

示例14: Init

		public void Init()
		{
			MockCSharpProject project = new MockCSharpProject();
			SelectedTests selectedTests = new SelectedTests(project);
			NUnitConsoleApplication app = new NUnitConsoleApplication(selectedTests);
			
			info = app.GetProcessStartInfo();
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:8,代码来源:NUnitConsoleProcessStartInfoTestFixture.cs

示例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();
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:8,代码来源:RubyTestRunnerApplication.cs


注:本文中的ICSharpCode.UnitTesting.SelectedTests类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。