Skip to content

Conversation

@jeffreyxrh
Copy link
Contributor

@jeffreyxrh
Copy link
Contributor Author

MicrosoftDocs/azure-docs-sdk-dotnet@master...jeffreyxrh:jex/373824 diff report generated 20210416

else
{
var assemblies = this.assemblies.Where(a => a.Name == typeEntry.Framework.Name).ToList();
return assemblies.Any(a => a.IsTypeForwardingTo(typeEntry));
Copy link
Member

Choose a reason for hiding this comment

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

There are two similar but independent scenarios that this fix should be addressing:

  1. A type forward assembly + the assembly with the actual definition
  2. Two separate assemblies, with the same type (name), but different TypeDefinitions (ie. different members ... such as different extension methods depending on which assembly reference you've added).

I would like to see some integration tests that reflect both of these scenarios. In fact, there's already a type forward test included here ... maybe you could add to that particular test, a separate test class that reflects the second scenario, to make sure that mdoc will correctly add all methods in both classes.

Suggested change
return assemblies.Any(a => a.IsTypeForwardingTo(typeEntry));
return assemblies.Any(a => a.IsTypeForwardingTo(typeEntry));

@joelmartinez joelmartinez merged commit 83d0e18 into mono:develop Apr 26, 2021
@jeffreyxrh jeffreyxrh deleted the jex/373824 branch April 28, 2021 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants