public static TestContext Start(PerformanceTestCase testCase, AdapterSettings settings) { var context = new TestContext(testCase, settings); TestContext.context.Value = context; return(context); }
public static TestContext Start(PerformanceTestCase testCase, TestContext parentContext, bool isWarmup) { var context = new TestContext(testCase, parentContext, isWarmup); TestContext.context.Value = context; return(context); }
private TestContext(PerformanceTestCase testCase, TestContext parentContext, bool isWarmup) { this.sb = stringBuilderPool.Get(); this.Properties = parentContext.Properties; TestCase = testCase; this.parentContext = parentContext; IsWarmup = isWarmup; }
private TestContext(PerformanceTestCase testCase, AdapterSettings settings) { this.sb = stringBuilderPool.Get(); this.Properties = settings.TestProperties; IsWarmup = false; TestCase = testCase; }