Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void DisposingMidScopeJumpsToOuterScope() { var threadStatic = new ThreadStatic<int>(); threadStatic.Use(1); var midScope = threadStatic.Use(2); threadStatic.Use(3); Assert.AreEqual(3, threadStatic.Current); midScope.Dispose(); Assert.AreEqual(1, threadStatic.Current); }
See Also