NameValueCollectionTest.cs 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. // created on 7/21/2001 at 2:36 PM
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Specialized;
  5. using System.Text;
  6. using NUnit.Framework;
  7. namespace MonoTests.System.Collections.Specialized {
  8. /// <summary>Microsoft NameValueCollection test.</summary>
  9. public class NameValueCollectionTest : TestCase {
  10. public NameValueCollectionTest() : base("MonoTests.System.Collections.Specialized.NameValueCollectionTest testsuite") {}
  11. public NameValueCollectionTest(String name) : base(name) {}
  12. public static ITest Suite {
  13. get {
  14. return new TestSuite(typeof(NameValueCollectionTest));
  15. }
  16. }
  17. public void TestGetValues ()
  18. {
  19. NameValueCollection col = new NameValueCollection ();
  20. col.Add ("foo1", "bar1");
  21. AssertEquals ("#1", null, col.GetValues (null));
  22. AssertEquals ("#2", null, col.GetValues (""));
  23. AssertEquals ("#3", null, col.GetValues ("NotExistent"));
  24. }
  25. }
  26. }