Esempio n. 1
0
        public void RemoveTest()
        {
            GlobalLogContext target = Log.GlobalContext;
            string           key    = "RemoveTest";

            target[key] = 1;
            Assert.AreEqual(true, target.ContainsKey(key));
            target.Remove(key);
            Assert.AreEqual(false, target.ContainsKey(key));
        }
Esempio n. 2
0
        public void ClearTest()
        {
            GlobalLogContext target = Log.GlobalContext;
            string           key    = "ClearTest";

            target[key] = 1;
            target.Clear();
            Assert.AreEqual(false, target.ContainsKey(key));
        }