public void AfterTest() { var cache = Cache(); cache.Clear(); Assert.IsTrue(cache.IsEmpty, "Cache is not empty: " + cache.Size()); CacheTestStore.Reset(); Console.WriteLine("Test finished: " + TestContext.CurrentContext.Test.Name); }
public void AfterTest() { CacheTestStore.Reset(); var cache = GetCache(); cache.Clear(); Assert.IsTrue(cache.IsEmpty(), "Cache is not empty: " + string.Join(", ", cache.Select(x => string.Format("[{0}:{1}]", x.Key, x.Value)))); TestUtils.AssertHandleRegistryHasItems(300, 3, Ignition.GetIgnite(GridName)); }
public void AfterTest() { var cache = GetCache(); cache.Clear(); Assert.IsTrue(cache.IsEmpty(), "Cache is not empty: " + cache.GetSize()); CacheTestStore.Reset(); TestUtils.AssertHandleRegistryHasItems(300, _storeCount, Ignition.GetIgnite(GridName)); Console.WriteLine("Test finished: " + TestContext.CurrentContext.Test.Name); }
public void AfterTest() { CacheTestStore.Reset(); var cache = GetCache(); cache.Clear(); Assert.IsTrue(cache.IsEmpty(), "Cache is not empty: " + string.Join(", ", cache.Select(x => string.Format("[{0}:{1}]", x.Key, x.Value)))); TestUtils.AssertHandleRegistryHasItems(300, _storeCount, Ignition.GetIgnite(GridName)); Console.WriteLine("Test finished: " + TestContext.CurrentContext.Test.Name); }