Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace System.Reflection.Emit.Tests
public class ConstructorBuilderToString
{
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)]
public void ToString_NullRequiredOptionalCustomModifiers()
{
TypeBuilder type = Helpers.DynamicType(TypeAttributes.Public);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public void DefineEnum_VoidUnderlyingType_ThrowsArgumentException()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)]
public void DefineEnum_ByRefUnderlyingType_ThrowsCOMExceptionOnCreation()
{
ModuleBuilder module = Helpers.DynamicModule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static IEnumerable<object[]> TestData()
}

[Theory]
[ActiveIssue("https://github.com/dotnet/runtime/issues/2389", TestRuntimes.Mono)]
[MemberData(nameof(TestData))]
public void DefineType(string name, TypeAttributes attributes, Type parent, PackingSize packingSize, int typesize, Type[] implementedInterfaces)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public override Module Module

public override string ToString()
{
return "ConstructorBuilder ['" + type.Name + "']";
return "Name: " + Name;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coreclr's ends up doing a bit more than this: it delegates to m_methodBuilder.ToString(), which prints out Name, Attributes, and MethodSignature. Should this do the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup I'll do that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephentoub Since we don't use a methodbuilder here in Mono, this complicated to do right after all. I can remove this change from the PR that's just supposed to enable tests, or I can leave it in as at least an improvement. What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either's fine. Might be worth tracking the known difference in an issue, but up to you. Thanks.

}

internal void fixup()
Expand Down