You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestDriven.Net currently supports targeting a MEF components with dependencies that are already active inside Visual Studio. If however we target a component with a new dependency, the newly added component wont be found and the execution will fail.
Test 'M:PrototypeMef.YourCommand.ExecuteAsync' failed: No exports were found that match the constraint:
ContractName PrototypeMef.YourCommand
RequiredTypeIdentity
System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint:
ContractName PrototypeMef.YourCommand
RequiredTypeIdentity
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(Type type, Type metadataViewType, String contractName, ImportCardinality cardinality)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String contractName, ImportCardinality cardinality)
at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T](String contractName)
at TestDriven.TestRunner.Server.ImportArgumentFactory.TryGetTargetObject(Type targetType)
at TestDriven.TestRunner.Server.ServiceAdHocDefaults.GetTargetObject(Type targetType)
at TestDriven.TestRunner.Server.AsyncMemberTestRunner.<RunMemberAsync>d__5.MoveNext()
This isn't very helpful. 😢
The text was updated successfully, but these errors were encountered:
TestDriven.Net currently supports targeting a MEF components with dependencies that are already active inside Visual Studio. If however we target a component with a new dependency, the newly added component wont be found and the execution will fail.
For example:
Targeting the
ExecuteAsync
method:Will fail with:
This isn't very helpful. 😢
The text was updated successfully, but these errors were encountered: