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 CurrentIsAvailableOnlyWithinScopeIfNoFallbackSet() { var threadStatic = new ThreadStatic<string>(); using (threadStatic.Use("abc")) Assert.AreEqual("abc", threadStatic.Current); Assert.IsFalse(threadStatic.HasCurrent); }
See Also