// 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 { public class BasicOperationsTest : TestCase { protected NameValueCollection nvc; private static Random rnd; public BasicOperationsTest() : base("MonoTests.System.Collections.Specialized.BasicOperationsTest testsuite") {} public BasicOperationsTest(String name) : base(name) {} protected override void SetUp() { nvc = new NameValueCollection(); rnd=new Random(); } public static ITest Suite { get { return new TestSuite(typeof(BasicOperationsTest)); } } 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