Skip to content

Commit

Permalink
Accommodate mono runtime differences
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jan 21, 2021
1 parent 0a9cc25 commit 735b83f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Microsoft.VisualStudio.Composition/ReflectionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ internal static Assignability IsAssignableTo(ImportDefinitionBinding import, Exp
{
return Assignability.DefinitelyNot;
}
catch (TargetParameterCountException)
{
return Assignability.DefinitelyNot;
}
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ public async Task ComposableAssembliesLazyLoadedWhenQueried()
}
}

[Fact]
[SkippableFact]
public async Task CatalogGetInputAssembliesDoesNotLoadLazyExports()
{
SkipOnMono();
var catalog = TestUtilities.EmptyCatalog.AddParts(
await TestUtilities.V2Discovery.CreatePartsAsync(typeof(ExternalExportWithExternalMetadataType), typeof(ExternalExportWithExternalMetadataTypeArray), typeof(ExternalExportWithExternalMetadataEnum32)));
var catalogCache = await this.SaveCatalogAsync(catalog);
Expand Down

0 comments on commit 735b83f

Please sign in to comment.