Ejemplo n.º 1
0
        public void CanInsertAndGetByOffset()
        {
            // ARRANGE
            var pair1 = new KeyValuePair <string, string>("addr", "eic");
            var pair2 = new KeyValuePair <string, string>("addr", "inv");

            // ACT
            _store.Insert(pair1, 0);
            var offset = _store.Insert(pair2, 0);
            var result = _store.Get(offset);

            // ASSERT
            Assert.AreEqual(pair2, result);
        }