public void AddObjectTest() { var obj = new object(); var addObj = GlobalObjectPool.Add("testObj", obj); Assert.NotNull(addObj); }
public void GetObjectTest() { var obj = new List <string> { "1", "2" }; GlobalObjectPool.Add("testObj", obj); var obj2 = GlobalObjectPool.Get <object>("testObj"); Assert.Same(obj, obj2); }