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

AP CompositionTestMethod1 sometime fails #166

Open
mpostol opened this issue Mar 3, 2020 · 0 comments
Open

AP CompositionTestMethod1 sometime fails #166

mpostol opened this issue Mar 3, 2020 · 0 comments
Assignees
Labels
bug something is wrong and must be fixed

Comments

@mpostol
Copy link
Owner

mpostol commented Mar 3, 2020

Adaptive Programming (AP)

The test fails if in the case of Run All - it could be caused by versioning.

Test Name:	CompositionTestMethod1
Test FullName:	TPA.Composition.UnitTest.MEFServiceLocatorUserUnitTest.CompositionTestMethod1
Test Source:	C:\VS.git\TUL\TP\AdaptiveProgramming\Composition.UnitTest\MEFServiceLocatorUserUnitTest.cs : line 21
Test Outcome:	Failed
Test Duration:	0:00:00.2302324

Result StackTrace:	
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)
   at System.ComponentModel.Composition.Hosting.DirectoryCatalog.<>c__DisplayClass34_0.<GetExports>b__0(ComposablePartCatalog catalog)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.InnerCatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ImportEngine.TryPreviewImportsStateMachine(PartManager partManager, ComposablePart part, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ImportEngine.PreviewImports(ComposablePart part, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)
   at System.ComponentModel.Composition.Hosting.CompositionContainer.Compose(CompositionBatch batch)
   at System.ComponentModel.Composition.AttributedModelServices.ComposeParts(CompositionContainer container, Object[] attributedParts)
   at TPA.Composition.UnitTest.MEFServiceLocatorUserUnitTest.ComposeParts(Object attributedParts) in C:\VS.git\TUL\TP\AdaptiveProgramming\Composition.UnitTest\MEFServiceLocatorUserUnitTest.cs:line 38
   at TPA.Composition.UnitTest.MEFServiceLocatorUserUnitTest.CompositionTestMethod1() in C:\VS.git\TUL\TP\AdaptiveProgramming\Composition.UnitTest\MEFServiceLocatorUserUnitTest.cs:line 25
Result Message:	
Test method TPA.Composition.UnitTest.MEFServiceLocatorUserUnitTest.CompositionTestMethod1 threw exception: 
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

@mpostol mpostol self-assigned this Mar 3, 2020
@mpostol mpostol added the bug something is wrong and must be fixed label Mar 3, 2020
@mpostol mpostol added this to the AP Backlog milestone Mar 3, 2020
mpostol added a commit that referenced this issue Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is wrong and must be fixed
Projects
None yet
Development

No branches or pull requests

1 participant