[Zope-CVS] CVS: PythonNet/src/testing - ArrayTest.cs:1.2 ClassTest.cs:1.2

Brian Lloyd brian at zope.com
Tue Sep 30 19:54:43 EDT 2003


Update of /cvs-repository/PythonNet/src/testing
In directory cvs.zope.org:/tmp/cvs-serv10541/src/testing

Modified Files:
	ArrayTest.cs ClassTest.cs 
Log Message:
Checkin stuff done in last few weeks (add nunit, iterator support)


=== PythonNet/src/testing/ArrayTest.cs 1.1 => 1.2 ===
--- PythonNet/src/testing/ArrayTest.cs:1.1	Mon Jul 28 22:29:24 2003
+++ PythonNet/src/testing/ArrayTest.cs	Tue Sep 30 19:54:12 2003
@@ -231,6 +231,19 @@
     }
 
 
+    public class NullArrayTest {
+
+	public object[] items;
+	public object[] empty;
+
+	public NullArrayTest() {
+	    items = new object[5] {null, null, null, null, null};
+	    empty = new object[0] {};
+	}
+
+    }
+
+
     public class ObjectArrayTest {
 
 	public object[] items;


=== PythonNet/src/testing/ClassTest.cs 1.1 => 1.2 ===
--- PythonNet/src/testing/ClassTest.cs:1.1	Mon Jul 14 16:00:05 2003
+++ PythonNet/src/testing/ClassTest.cs	Tue Sep 30 19:54:12 2003
@@ -10,6 +10,7 @@
 // FOR A PARTICULAR PURPOSE.
 
 using System;
+using System.Collections;
 
 namespace Python.Test {
 
@@ -18,6 +19,25 @@
     //========================================================================
 
     public class ClassTest {
+
+	public static ArrayList GetArrayList() {
+	    ArrayList list = new ArrayList();
+	    for (int i = 0; i < 10; i++) {
+		list.Add(i);
+	    }
+	    return list;
+	}
+
+	public static Hashtable GetHashtable() {
+	    Hashtable dict = new Hashtable();
+	    dict.Add("one", 1);
+	    dict.Add("two", 2);
+	    dict.Add("three", 3);
+	    dict.Add("four", 4);
+	    dict.Add("five", 5);
+	    return dict;
+	}
+
 
 
     }




More information about the Zope-CVS mailing list