ThreadStaticTests MultipleScopesPushAndPopCorrectly Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void MultipleScopesPushAndPopCorrectly()
Examples

[Test]
public void MultipleScopesPushAndPopCorrectly()
{
    var threadStatic = new ThreadStatic<int>();
    using (threadStatic.Use(1))
    {
        Assert.AreEqual(1, threadStatic.Current);
        TestMidScope(threadStatic);
        Assert.AreEqual(1, threadStatic.Current);
    }
}
See Also