示例#1
0
        public void RemoveTest()
        {
            var target = new MockExceptionDictionary();

            Assert.Throws <Exception>(() => target.Remove(2), "RemoveItem");
        }
示例#2
0
        public void IndexerTest()
        {
            var target = new MockExceptionDictionary();

            Assert.Throws <Exception>(() => target[2] = 2, "SetItem");
        }
示例#3
0
        public void ClearTest()
        {
            var target = new MockExceptionDictionary();

            Assert.Throws <Exception>(() => target.Clear(), "ClearItems");
        }
示例#4
0
        public void RemoveTest()
        {
            var target = new MockExceptionDictionary();

            target.Remove(2);
        }
示例#5
0
        public void IndexerTest()
        {
            var target = new MockExceptionDictionary();

            target[2] = 2;
        }
示例#6
0
        public void ClearTest()
        {
            var target = new MockExceptionDictionary();

            target.Clear();
        }