Actually ignore both my previous posts. The first one was poorly written and the second one was a false positive. Here's the deal, imagine the following scenario
in an application.
1) You have a method that takes an arbitrary number of parameters, and returns an ImportDefinition (same would apply for ExportDefinition)
2) The method takes the parameters, applies to rules and figures out the values it should use when it calles
3) It decides that for the importingMember (of type LazyMemberInfo) it passes in the Foo property on the Bar type
4) It then returns the ImportDefinition
Alright. How do you write a test that verifies that the correct "importingMember" was provided for the ImportDefinition for the parameter
values that was passed into the method in 1) ??? What I want to test is that the logic for deciding which member to use for the import is
correct and in order to do this I kind of would need to get access to ImportingLazyMember on ReflectionMemberImportDefinition, but
since that's an internal class that's out of the question.
Are the any other way to assert the above? Just to clarify, I'm not looking to verify the behavior of the RMS, but the logic in the method
mentioned above and to do so I need to check what importing member was selected by the method.