Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NameValueCollectionTest.cs « System.Collections.Specialized « Test « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd066f4d2252f12f3ff4c42cfb834cf4ab517af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// created on 7/21/2001 at 2:36 PM

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Text;

using NUnit.Framework;

namespace MonoTests.System.Collections.Specialized {


	/// <summary>Microsoft NameValueCollection test.</summary>
	public class NameValueCollectionTest : TestCase {

		public NameValueCollectionTest() : base("MonoTests.System.Collections.Specialized.NameValueCollectionTest testsuite") {}
		public NameValueCollectionTest(String name) : base(name) {}

		public static ITest Suite {
			get {
				return new TestSuite(typeof(NameValueCollectionTest));
			}
		}
		
		public void TestGetValues ()
		{
			NameValueCollection col = new NameValueCollection ();
			col.Add ("foo1", "bar1");
			AssertEquals ("#1", null, col.GetValues (null));
			AssertEquals ("#2", null, col.GetValues (""));
			AssertEquals ("#3", null, col.GetValues ("NotExistent"));
		}
	}
}