public void ImportExportSansNameTest() { var container = ContainerFactory.CreateWithDefaultAttributedCatalog(); UnnamedImportAndExport unnamed = container.GetExportedValue <UnnamedImportAndExport>(); Assert.IsNotNull(unnamed, "Should have found UnnamedImportAndExport component"); Assert.IsNotNull(unnamed.ImportedValue, "Component's unnamed import should have been fulfilled"); }
[ActiveIssue("https://github.com/dotnet/corefx/issues/25498", TestPlatforms.AnyUnix)] // System.Reflection.ReflectionTypeLoadException : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. public void ImportExportSansNameTest() { var container = ContainerFactory.CreateWithDefaultAttributedCatalog(); UnnamedImportAndExport unnamed = container.GetExportedValue <UnnamedImportAndExport>(); Assert.NotNull(unnamed); Assert.NotNull(unnamed.ImportedValue); }