[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetEventsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetEvents ();
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetEventsFlagsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetEvents (BindingFlags.Public);
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetEventIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetEvent ("FOO");
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetEventFlagsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetEvent ("FOO", BindingFlags.Public);
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetFieldsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetFields ();
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetFieldsFlagsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetFields (BindingFlags.Instance | BindingFlags.Public);
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetFieldIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetField ("test");
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);
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));
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetPropertiesIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetProperties ();
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetPropertiesFlagsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetProperties (BindingFlags.Public);
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetMethodsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetMethods ();
[Test]
[ExpectedException (typeof(NotSupportedException))]
+ [Ignore("mcs depends on this")]
public void TestGetMethodsFlagsIncomplete () {
TypeBuilder tb = module.DefineType (genTypeName ());
tb.GetMethods (BindingFlags.Public);