Esempio n. 1
0
        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);
        }
Esempio n. 2
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));
        }
Esempio n. 3
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);
        }
Esempio n. 4
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);
        }