[Zope-CVS] CVS: PythonNet/src/testing - ConstructorTests.cs:1.1 ConversionTest.cs:1.2 MethodTest.cs:1.3

Brian Lloyd brian at zope.com
Sat Jan 17 23:30:08 EST 2004


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

Modified Files:
	ConversionTest.cs MethodTest.cs 
Added Files:
	ConstructorTests.cs 
Log Message:
Checkin miscellaneous stuff done since Nov.


=== Added File PythonNet/src/testing/ConstructorTests.cs ===
// Copyright (c) 2001, 2002 Zope Corporation and Contributors.
//
// All Rights Reserved.
//
// This software is subject to the provisions of the Zope Public License,
// Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
// THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
// WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
// FOR A PARTICULAR PURPOSE.

using System;
using System.Collections;
using System.Windows.Forms;
using System.IO;

namespace Python.Test {

    //========================================================================
    // These classes support the CLR constructor unit tests.
    //========================================================================

    public class EnumConstructorTest {

	public TypeCode value;

	public EnumConstructorTest(TypeCode v) {
	    this.value = v;
	}

    }


    public class FlagsConstructorTest {

	public FileAccess value;

	public FlagsConstructorTest(FileAccess v) {
	    this.value = v;
	}

    }


    public class StructConstructorTest {

	public Guid value;

	public StructConstructorTest(Guid v) {
	    this.value = v;
	}

    }


    public class SubclassConstructorTest {

	public Control value;

	public SubclassConstructorTest(Control v) {
	    this.value = v;
	}

    }


}


=== PythonNet/src/testing/ConversionTest.cs 1.1 => 1.2 ===
--- PythonNet/src/testing/ConversionTest.cs:1.1	Mon Jul 14 16:00:05 2003
+++ PythonNet/src/testing/ConversionTest.cs	Sat Jan 17 23:29:37 2004
@@ -43,6 +43,7 @@
 	public ShortEnum EnumField;
 	public object ObjectField = null;
 	public ISpam SpamField;
+
     }
 
 


=== PythonNet/src/testing/MethodTest.cs 1.2 => 1.3 ===
--- PythonNet/src/testing/MethodTest.cs:1.2	Mon Oct 27 21:07:02 2003
+++ PythonNet/src/testing/MethodTest.cs	Sat Jan 17 23:29:37 2004
@@ -10,6 +10,8 @@
 // FOR A PARTICULAR PURPOSE.
 
 using System;
+using System.IO;
+using System.Windows.Forms;
 
 namespace Python.Test {
 
@@ -53,7 +55,34 @@
 	    return "private static";
 	}
 
+
+	//===================================================================
+	// Methods to support specific argument conversion unit tests
+	//===================================================================
+
+	public TypeCode TestEnumConversion(TypeCode v) {
+	    return v;
+	}
+
+	public FileAccess TestFlagsConversion(FileAccess v) {
+	    return v;
+	}
+
+	public Guid TestStructConversion(Guid v) {
+	    return v;
+	}
+
+	public Control TestSubclassConversion(Control v) {
+	    return v;
+	}
+
+	public Type[] TestNullArrayConversion(Type [] v) {
+	    return v;
+	}
+
+
     }
+
 
     public class MethodTestSub : MethodTest {
 




More information about the Zope-CVS mailing list