예제 #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();
        }