DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Caching.MemoryCacheTests Class Reference

Public Member Functions

void CreateWithoutErrors ()
 
void SetValue ()
 
void SetAndGetValue ()
 

Detailed Description

Definition at line 22 of file MemoryCacheTests.cs.

Member Function Documentation

void Deveel.Data.Caching.MemoryCacheTests.CreateWithoutErrors ( )
inline

Definition at line 24 of file MemoryCacheTests.cs.

24  {
25  MemoryCache cache = null;
26  Assert.DoesNotThrow(() => cache = new MemoryCache());
27  Assert.IsNotNull(cache);
28  }
void Deveel.Data.Caching.MemoryCacheTests.SetAndGetValue ( )
inline

Definition at line 40 of file MemoryCacheTests.cs.

40  {
41  var cache = new MemoryCache();
42  Assert.IsTrue(cache.Set(32, "test"));
43 
44  object value = null;
45  Assert.DoesNotThrow(() => {
46  bool found = cache.TryGet(32, out value);
47  Assert.IsTrue(found);
48  });
49 
50  Assert.IsNotNull(value);
51  Assert.AreEqual("test", value);
52  }
void Deveel.Data.Caching.MemoryCacheTests.SetValue ( )
inline

Definition at line 31 of file MemoryCacheTests.cs.

31  {
32  var cache = new MemoryCache();
33 
34  bool result = false;
35  Assert.DoesNotThrow(() => result = cache.Set(32, "test"));
36  Assert.IsTrue(result);
37  }

The documentation for this class was generated from the following file: