コード例 #1
0
        public static TestContext Start(PerformanceTestCase testCase, AdapterSettings settings)
        {
            var context = new TestContext(testCase, settings);

            TestContext.context.Value = context;
            return(context);
        }
コード例 #2
0
        public static TestContext Start(PerformanceTestCase testCase, TestContext parentContext, bool isWarmup)
        {
            var context = new TestContext(testCase, parentContext, isWarmup);

            TestContext.context.Value = context;
            return(context);
        }
コード例 #3
0
 private TestContext(PerformanceTestCase testCase, TestContext parentContext, bool isWarmup)
 {
     this.sb            = stringBuilderPool.Get();
     this.Properties    = parentContext.Properties;
     TestCase           = testCase;
     this.parentContext = parentContext;
     IsWarmup           = isWarmup;
 }
コード例 #4
0
        private TestContext(PerformanceTestCase testCase, AdapterSettings settings)
        {
            this.sb = stringBuilderPool.Get();

            this.Properties = settings.TestProperties;
            IsWarmup        = false;
            TestCase        = testCase;
        }