Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netcore] Make System.Composition.Hosting.Tests.ContainerConfigurationTests.WithAssemblies_Assemblies_ThrowsCompositionFailedExceptionOnCreation Pass #15171

Closed
steveisok opened this issue Jun 15, 2019 · 1 comment · Fixed by #18176

Comments

@steveisok
Copy link
Contributor

Fails the same as #15170

This is a tracking issue.

@CoffeeFlux
Copy link
Contributor

New failure:

    System.Composition.Hosting.Tests.ContainerConfigurationTests.WithAssemblies_Assemblies_ThrowsCompositionFailedExceptionOnCreation [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.Composition.Hosting.CompositionFailedException)
      Actual:   typeof(System.InvalidCastException): Specified cast is not valid.
      ---- System.InvalidCastException : Specified cast is not valid.
      Stack Trace:
           at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit)
           at System.Composition.TypedParts.Util.DirectAttributeContext.GetCustomAttributes(Type reflectedType, MemberInfo member)
           at System.Composition.Convention.AttributedModelProviderExtensions.GetDeclaredAttribute[PartNotDiscoverableAttribute](AttributedModelProvider convention, Type reflectedType, MemberInfo member)
           at System.Composition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(TypeInfo type, DiscoveredPart& part)
           at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable`1 types, AttributedModelProvider attributeContext)
           at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
           at System.Composition.Hosting.Tests.ContainerConfigurationTests.<>c__DisplayClass18_0.<WithAssemblies_Assemblies_ThrowsCompositionFailedExceptionOnCreation>b__0()
        ----- Inner Stack Trace -----
           at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit)
           at System.Composition.TypedParts.Util.DirectAttributeContext.GetCustomAttributes(Type reflectedType, MemberInfo member)
           at System.Composition.Convention.AttributedModelProviderExtensions.GetDeclaredAttribute[PartNotDiscoverableAttribute](AttributedModelProvider convention, Type reflectedType, MemberInfo member)
           at System.Composition.TypedParts.Discovery.TypeInspector.InspectTypeForPart(TypeInfo type, DiscoveredPart& part)
           at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor(IEnumerable`1 types, AttributedModelProvider attributeContext)
           at System.Composition.Hosting.ContainerConfiguration.CreateContainer()
           at System.Composition.Hosting.Tests.ContainerConfigurationTests.<>c__DisplayClass18_0.<WithAssemblies_Assemblies_ThrowsCompositionFailedExceptionOnCreation>b__0()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants