2004-11-06 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Fri, 5 Nov 2004 21:40:55 +0000 (21:40 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 5 Nov 2004 21:40:55 +0000 (21:40 -0000)
* TypeBuilderTest.cs: Ignore some tests which depend on TypeBuilder
features which are unlikely to change due to mcs depending on them.

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

mcs/class/corlib/Test/System.Reflection.Emit/ChangeLog
mcs/class/corlib/Test/System.Reflection.Emit/TypeBuilderTest.cs

index 1c3a2d33d737c817f2999d4d1541996c907096e6..511b234087df281abfce023b394e7c4b444d868d 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-06  Zoltan Varga  <vargaz@freemail.hu>
+
+       * TypeBuilderTest.cs: Ignore some tests which depend on TypeBuilder
+       features which are unlikely to change due to mcs depending on them.
+
 2004-11-05  Zoltan Varga  <vargaz@freemail.hu>
 
        * EnumBuilderTest.cs: Remove test that depends on the exact format
index df396fc33ae674288814ccea587322542f7943fd..5cb04123c75b77fae3caac3535af6c5a7a37bb83 100644 (file)
@@ -1136,6 +1136,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetEventsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetEvents ();
@@ -1163,6 +1164,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetEventsFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetEvents (BindingFlags.Public);
@@ -1200,6 +1202,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetEventIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetEvent ("FOO");
@@ -1227,6 +1230,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetEventFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetEvent ("FOO", BindingFlags.Public);
@@ -1256,6 +1260,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetFieldsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetFields ();
@@ -1274,6 +1279,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetFieldsFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetFields (BindingFlags.Instance | BindingFlags.Public);
@@ -1296,6 +1302,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetFieldIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetField ("test");
@@ -1309,14 +1316,15 @@ public class TypeBuilderTest : Assertion
                Type emittedType = tb.CreateType ();
 
                AssertNotNull (tb.GetField ("TestField"));
-               AssertEquals (tb.GetField ("TestField"), emittedType.GetField ("TestField"));
+               AssertEquals (tb.GetField ("TestField").Name, emittedType.GetField ("TestField").Name);
                AssertNull (tb.GetField ("TestOtherField"));
-               AssertEquals (tb.GetField ("TestOtherField"), 
-                       emittedType.GetField ("TestOtherField"));
+               AssertEquals (tb.GetField ("TestOtherField").Name
+                       emittedType.GetField ("TestOtherField").Name);
        }
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetFieldFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetField ("test", BindingFlags.Public);
@@ -1330,8 +1338,8 @@ public class TypeBuilderTest : Assertion
                Type emittedType = tb.CreateType ();
 
                AssertNotNull (tb.GetField ("TestField", BindingFlags.Instance | BindingFlags.Public));
-               AssertEquals (tb.GetField ("TestField", BindingFlags.Instance | BindingFlags.Public),
-                       emittedType.GetField ("TestField", BindingFlags.Instance | BindingFlags.Public));
+               AssertEquals (tb.GetField ("TestField", BindingFlags.Instance | BindingFlags.Public).Name,
+                       emittedType.GetField ("TestField", BindingFlags.Instance | BindingFlags.Public).Name);
                AssertNull (tb.GetField ("TestField", BindingFlags.Instance | BindingFlags.NonPublic));
                AssertEquals (tb.GetField ("TestField", BindingFlags.Instance | BindingFlags.NonPublic),
                        emittedType.GetField ("TestField", BindingFlags.Instance | BindingFlags.NonPublic));
@@ -1339,6 +1347,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetPropertiesIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetProperties ();
@@ -1357,6 +1366,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetPropertiesFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetProperties (BindingFlags.Public);
@@ -1428,6 +1438,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetMethodsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetMethods ();
@@ -1455,6 +1466,7 @@ public class TypeBuilderTest : Assertion
 
        [Test]
        [ExpectedException (typeof(NotSupportedException))]
+       [Ignore("mcs depends on this")]
        public void TestGetMethodsFlagsIncomplete () {
                TypeBuilder tb = module.DefineType (genTypeName ());
                tb.GetMethods (BindingFlags.Public);