コード例 #1
0
        public void SetTest()
        {
            ThreadLocalStorage.Set("Count", 10);
            Assert.AreEqual(10, ThreadLocalStorage.Get <int>("Count"));

            ThreadLocalStorage.Set("Count", 20);
            Assert.AreEqual(20, ThreadLocalStorage.Get <int>("Count"));
        }
コード例 #2
0
 public void RemoveTest()
 {
     ThreadLocalStorage.Remove("Count");
     Assert.AreEqual(0, ThreadLocalStorage.Get <int>("Count"));
 }