Exemple #1
0
        public void TestMainStoreAdd()
        {
            var mainStore = new MainStore <int, int>();

            mainStore.PutValue(1, 1);
            mainStore.PutValue(1, 2);

            Assert.AreEqual(1, mainStore.Count());

            mainStore.PutValue(2, 1);
            Assert.AreEqual(2, mainStore.Count());
        }
Exemple #2
0
        public void TestMainStoreDelete()
        {
            var mainStore = new MainStore <int, int>();

            mainStore.PutValue(1, 2);
            mainStore.PutValue(2, 2);

            Assert.AreEqual(true, mainStore.DeleteValue(1));
            Assert.AreEqual(1, mainStore.Count());

            Assert.AreEqual(false, mainStore.DeleteValue(3));
        }