• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# UnitTesting.SelectedTests类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ICSharpCode.UnitTesting.SelectedTests的典型用法代码示例。如果您正苦于以下问题:C# SelectedTests类的具体用法?C# SelectedTests怎么用?C# SelectedTests使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SelectedTests类属于ICSharpCode.UnitTesting命名空间,在下文中一共展示了SelectedTests类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: CreateNUnitTestRunner

		void CreateNUnitTestRunner()
		{
			selectedTests = SelectedTestsHelper.CreateSelectedTestMember();
			context = new MockNUnitTestRunnerContext();
			FileUtility.ApplicationRootPath = @"C:\SharpDevelop";
			
			testRunner = context.CreateNUnitTestRunner();
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:8,代码来源:RunNUnitTestsForMethodTestFixture.cs


示例17: GallioEchoConsoleApplicationProcessStartInfo

		public GallioEchoConsoleApplicationProcessStartInfo(SelectedTests selectedTests, string testResultsFileName)
		{
			GallioEchoConsoleApplicationFactory factory = new GallioEchoConsoleApplicationFactory();
			GallioEchoConsoleApplication app = factory.Create(selectedTests);
			SharpDevelopTestRunnerExtensionCommandLineArgument argument = new SharpDevelopTestRunnerExtensionCommandLineArgument();
			argument.TestResultsFileName = testResultsFileName;
			app.TestRunnerExtensions.Add(argument);
			processStartInfo = app.GetProcessStartInfo();
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:GallioEchoConsoleApplicationProcessStartInfo.cs


示例18: Init

		public void Init()
		{
			projects = new List<IProject>();
			projects.Add(new MockCSharpProject());
			projects.Add(new MockCSharpProject());
			projects.Add(new MockCSharpProject());
			
			selectedTests = new SelectedTests(null, projects.ToArray());
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:NoOwnerForSelectedTestsTestFixture.cs


示例19: CreateResponseFile

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


示例20: WriteTests

		public void WriteTests(SelectedTests selectedTests)
		{
			if (selectedTests.Member != null) {
				WriteTestFileNameForMethod(selectedTests.Member);
			} else if (selectedTests.Class != null) {
				WriteTestFileNameForClass(selectedTests.Class);
			} else if (selectedTests.Project != null) {
				WriteTestsForProject(selectedTests.Project);
			}
		}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:10,代码来源:RubyTestRunnerResponseFile.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WixBinding.WixDocument类代码示例发布时间:2022-05-26
下一篇:
C# TreeView.SharpTreeViewItem类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap