public void TestUpdate() { const string key2 = "A "; _cache.Add( _key, _user, 10 ); var user = new User {DoubleValue = 888}; _cache.Update( null, user,10 ); _cache.Update( key2, user,10 ); Assert.AreEqual( 888, _cache.Get<User>( _key ).DoubleValue ); }
public void TestInit() { _cache = new LocalCacheProvider(); _user = new User { DoubleValue = 999 }; _key = "a"; }
public void TestInit() { _user = new User(); }