public TestSessionContext Load(RunnerConfiguration configuration) { var testSessionContext = new TestSessionContext(); var assemblyConfigurations = configuration.Assemblies.Where(x => x.Platform != "x86").ToList(); ProgressChanged(0, assemblyConfigurations.Count); for (int i = 0; i < assemblyConfigurations.Count; i++) { var assemblyConfiguration = assemblyConfigurations[i]; var assemblyTestCases = Load(assemblyConfiguration); testSessionContext.AddTestCases(assemblyTestCases); ProgressChanged(i + 1, assemblyConfigurations.Count); } return testSessionContext; }
public static ConfigFileParseResult Success(RunnerConfiguration configuration) { return new ConfigFileParseResult(configuration); }
public async Task<TestSessionContext> LoadAsync(RunnerConfiguration configuration) { return await Task.Run(() => Load(configuration)); }
private ConfigFileParseResult(RunnerConfiguration configuration) { Configuration = configuration; WasParsedSuccessfully = true; }