Ver Fonte

* FieldInfoTest.cs (RefOnlyFieldClass): Rename from RefOnlyClass.
* MethodInfoTest.cs (RefOnlyMethodClass): Rename from RefOnlyClass.

svn path=/trunk/mcs/; revision=42677

Raja R Harinath há 21 anos atrás
pai
commit
78f9422bef

+ 5 - 0
mcs/class/corlib/Test/System.Reflection/ChangeLog

@@ -1,3 +1,8 @@
+2005-04-08  Raja R Harinath  <[email protected]>
+
+	* FieldInfoTest.cs (RefOnlyFieldClass): Rename from RefOnlyClass.
+	* MethodInfoTest.cs (RefOnlyMethodClass): Rename from RefOnlyClass.
+
 2005-04-08  Carlos Alberto Cortez <[email protected]>
 
 	* AssemblyTest.cs: Added tests for ReflectionOnly support.

+ 3 - 3
mcs/class/corlib/Test/System.Reflection/FieldInfoTest.cs

@@ -101,7 +101,7 @@ public class FieldInfoTest : Assertion
 	public void GetValueOnRefOnlyAssembly ()
 	{
 		Assembly assembly = Assembly.ReflectionOnlyLoad (typeof (FieldInfoTest).Assembly.FullName);
-		Type t = assembly.GetType (typeof (RefOnlyClass).FullName);
+		Type t = assembly.GetType (typeof (RefOnlyFieldClass).FullName);
 		FieldInfo f = t.GetField ("RefOnlyField", BindingFlags.Static | BindingFlags.NonPublic);
 
 		f.GetValue (null);
@@ -112,7 +112,7 @@ public class FieldInfoTest : Assertion
 	public void SetValueOnRefOnlyAssembly ()
 	{
 		Assembly assembly = Assembly.ReflectionOnlyLoad (typeof (FieldInfoTest).Assembly.FullName);
-		Type t = assembly.GetType (typeof (RefOnlyClass).FullName);
+		Type t = assembly.GetType (typeof (RefOnlyFieldClass).FullName);
 		FieldInfo f = t.GetField ("RefOnlyField", BindingFlags.Static | BindingFlags.NonPublic);
 
 		f.SetValue (null, 8);
@@ -122,7 +122,7 @@ public class FieldInfoTest : Assertion
 }		
 #if NET_2_0
 // Helper class
-class RefOnlyClass 
+class RefOnlyFieldClass 
 {
 	// Helper property
 	static int RefOnlyField;

+ 2 - 2
mcs/class/corlib/Test/System.Reflection/MethodInfoTest.cs

@@ -159,7 +159,7 @@ namespace MonoTests.System.Reflection
 		public void InvokeOnRefOnlyAssembly ()
 		{
 			Assembly a = Assembly.ReflectionOnlyLoad (typeof (MethodInfoTest).Assembly.FullName);
-			Type t = a.GetType (typeof (RefOnlyClass).FullName);
+			Type t = a.GetType (typeof (RefOnlyMethodClass).FullName);
 			MethodInfo m = t.GetMethod ("RefOnlyMethod", BindingFlags.Static | BindingFlags.NonPublic);
 			
 			m.Invoke (null, new object [0]);
@@ -170,7 +170,7 @@ namespace MonoTests.System.Reflection
 	
 #if NET_2_0
 	// Helper class
-	class RefOnlyClass 
+	class RefOnlyMethodClass 
 	{
 		// Helper static method
 		static void RefOnlyMethod ()