2005-04-12 Dick Porter <dick@ximian.com>
[mono.git] / mcs / class / System / Test / System.Collections.Specialized / ListDictionaryTest.cs
1 //
2 // ListDictionaryTest.cs
3 //      - NUnit Test Cases for System.Collections.Specialized.ListDictionary.cs
4 //
5 // Authors:
6 //   Duncan Mak (duncan@ximian.com)
7 //   Alon Gazit (along@mainsoft.com)
8 //   
9 //
10 // Copyright (C) 2003 Ximian Inc.
11 //
12
13 using NUnit.Framework;
14 using System;
15 using System.Collections;
16 using System.Collections.Specialized;
17
18 namespace MonoTests.System.Collections.Specialized
19 {
20         [TestFixture]
21         public class ListDictionaryTest : Assertion
22         {
23                 [Test, ExpectedException (typeof (ArgumentNullException))]
24                 public void CopyTo1 ()
25                 {
26                         ListDictionary ld = new ListDictionary ();
27                         ld.CopyTo (null, 0);
28                 }
29
30                 [Test, ExpectedException (typeof (ArgumentOutOfRangeException))]
31                 public void CopyTo2 ()
32                 {
33                         ListDictionary ld = new ListDictionary ();
34                         ld.CopyTo (new int[1],-1);       
35                 }
36
37                 [Test, ExpectedException (typeof (ArgumentNullException))]
38                 public void Remove ()
39                 {
40                         ListDictionary ld = new ListDictionary ();
41                         ld.Remove (null);
42                 }
43         }
44 }