Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }