Files
mono/mcs/class/System/Test/System.Collections.Specialized/ListDictionaryTest.cs
T
Duncan Mak 4ac9cd9a40 Add Alon's name to the Authors.
svn path=/trunk/mcs/; revision=17886
2003-09-04 19:20:20 +00:00

45 lines
1.3 KiB
C#

//
// 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);
}
}
}