mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
45 lines
1.3 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|