Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public void ThreadStaticStoreConstructorTest()
 {
     ThreadStaticStore target = new ThreadStaticStore();
 }
Exemplo n.º 4
0
 private ThreadStatcBuilder()
 {
     Store = new ThreadStaticStore();
 }