public void GetDataTest() { ThreadStaticStore target = new ThreadStaticStore(); string key = "object"; object expected = "11"; target.SetData(key, expected); object actual; actual = target.GetData(key); Assert.AreEqual(expected, actual); }
public void SetDataTest() { ThreadStaticStore target = new ThreadStaticStore(); string key = "object"; object data = 1; target.SetData(key, data); Assert.AreEqual(data, target.GetData(key)); target.SetData(key, "2"); Assert.AreEqual("2", target.GetData(key)); }
public void ThreadStaticStoreConstructorTest() { ThreadStaticStore target = new ThreadStaticStore(); }
private ThreadStatcBuilder() { Store = new ThreadStaticStore(); }