/// <summary> /// Initializes a new instance of the <see cref="TestExecutionContext"/> class. /// </summary> public TestExecutionContext() { _priorContext = null; TestCaseTimeout = 0; UpstreamActions = new List <ITestAction>(); UpdateContextFromEnvironment(); CurrentValueFormatter = (val) => MsgUtils.DefaultValueFormatter(val); IsSingleThreaded = false; DefaultFloatingPointTolerance = Tolerance.Default; }
/// <summary> /// Initializes a new instance of the <see cref="TestExecutionContext"/> class. /// </summary> public TestExecutionContext() { _priorContext = null; TestCaseTimeout = 0; UpstreamActions = new List <ITestAction>(); _currentCulture = CultureInfo.CurrentCulture; _currentUICulture = CultureInfo.CurrentUICulture; #if !NETCF && !SILVERLIGHT && !PORTABLE _currentPrincipal = Thread.CurrentPrincipal; #endif CurrentValueFormatter = (val) => MsgUtils.DefaultValueFormatter(val); }
/// <summary> /// Initializes a new instance of the <see cref="TestExecutionContext"/> class. /// </summary> public TestExecutionContext() { _priorContext = null; TestCaseTimeout = 0; UpstreamActions = new List <ITestAction>(); _currentCulture = CultureInfo.CurrentCulture; _currentUICulture = CultureInfo.CurrentUICulture; #if !PORTABLE && !NETSTANDARD1_6 _currentPrincipal = Thread.CurrentPrincipal; #endif CurrentValueFormatter = (val) => MsgUtils.DefaultValueFormatter(val); IsSingleThreaded = false; }