Esempio n. 1
0
        public void TestGet()
        {
            var m   = new SlotMap <object>();
            var obj = new object();

            var key = m.Add(obj);

            Assert.AreEqual(obj, m.Get(key));

            m.TryGet(key, out object result);
            Assert.AreEqual(obj, result);
        }
Esempio n. 2
0
        public void TestGetException()
        {
            var m = new SlotMap <object>();

            m.Get(0);
        }