// created on 7/21/2001 at 2:36 PM // // Author: Martin Willemoes Hansen // // (C) 2003 Martin Willemoes Hansen // using System; using System.Collections; using System.Collections.Specialized; using System.Text; using NUnit.Framework; namespace MonoTests.System.Collections.Specialized { [TestFixture] public class BasicOperationsTest : Assertion { protected NameValueCollection nvc; private static Random rnd; [SetUp] public void GetReady() { nvc = new NameValueCollection(); rnd=new Random(); } private void SetDefaultData() { nvc.Clear(); nvc.Add("k1","this"); nvc.Add("k2","test"); nvc.Add("k3","is"); nvc.Add("k4","silly"); } private static string FormatForPrinting (NameValueCollection nv) { if (nv==null) return null; int max = nv.Count; StringBuilder sb = new StringBuilder("-\t-Key-\t-Value-\n"); for (int i=0; i=r1 && i