| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // ListDictionaryTest.cs
- // - NUnit Test Cases for System.Collections.Specialized.ListDictionary.cs
- //
- // Authors:
- // Duncan Mak ([email protected])
- // Alon Gazit ([email protected])
- //
- //
- // Copyright (C) 2003 Ximian Inc.
- //
- using NUnit.Framework;
- using System;
- using System.Collections;
- using System.Collections.Specialized;
- namespace MonoTests.System.Collections.Specialized
- {
- [TestFixture]
- public class ListDictionaryTest : Assertion
- {
- [Test, ExpectedException (typeof (ArgumentNullException))]
- public void CopyTo1 ()
- {
- ListDictionary ld = new ListDictionary ();
- ld.CopyTo (null, 0);
- }
- [Test, ExpectedException (typeof (ArgumentOutOfRangeException))]
- public void CopyTo2 ()
- {
- ListDictionary ld = new ListDictionary ();
- ld.CopyTo (new int[1],-1);
- }
- [Test, ExpectedException (typeof (ArgumentNullException))]
- public void Remove ()
- {
- ListDictionary ld = new ListDictionary ();
- ld.Remove (null);
- }
- }
- }
|