本文整理汇总了C#中IRunner.Run方法的典型用法代码示例。如果您正苦于以下问题:C# IRunner.Run方法的具体用法?C# IRunner.Run怎么用?C# IRunner.Run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRunner
的用法示例。
在下文中一共展示了IRunner.Run方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Because
protected override void Because()
{
base.Because();
var statLightConfigurationFactory = new StatLightConfigurationFactory(_testLogger);
var statLightConfiguration = statLightConfigurationFactory.GetStatLightConfigurationForXap(
ClientTestRunConfiguration.UnitTestProviderType,
_pathToIntegrationTestXap,
MSTestVersion,
ClientTestRunConfiguration.MethodsToTest,
ClientTestRunConfiguration.TagFilter,
1,
false,
"", StatLight.Core.WebBrowser.WebBrowserType.SelfHosted,
forceBrowserStart:true,
showTestingBrowserHost:false);
//bool showTestingBrowserHost = statLightConfiguration.Server.XapHostType == XapHostType.MSTestApril2010;
_testLogger.Debug("Setting up xaphost {0}".FormatWith(statLightConfiguration.Server.XapHostType));
Runner = _statLightRunnerFactory.CreateOnetimeConsoleRunner(statLightConfiguration);
TestReport = Runner.Run();
}
示例2: SetUp
public void SetUp()
{
var scenarioText = "Feature: Config file support\r\n" +
"Scenario: Reading values from a config file\r\n" +
"Given an assembly with a matching configuration file\r\n" +
"When the value of setting foo is read\r\n" +
"Then the value should be bar";
SetupConfigFile();
runner = CreateTextRunner(new[] { "TestPlainTextAssembly.dll" }, scenarioText);
results = runner.Run();
}
示例3: Start
private Task Start(IRunner runner)
{
return Task.Run(() => runner.Run(_tokenSource), CancellationToken.None);
}