18 using NUnit.Framework;
20 namespace Deveel.Data.Caching {
26 Assert.DoesNotThrow(() => cache =
new MemoryCache());
27 Assert.IsNotNull(cache);
35 Assert.DoesNotThrow(() => result = cache.Set(32,
"test"));
36 Assert.IsTrue(result);
42 Assert.IsTrue(cache.Set(32,
"test"));
45 Assert.DoesNotThrow(() => {
46 bool found = cache.TryGet(32, out value);
50 Assert.IsNotNull(value);
51 Assert.AreEqual(
"test", value);
void CreateWithoutErrors()