问题
I would like to write a test that just ensures that all components registered to my WindsorContainer can indeed be resolved. Anyone have any ideas how I can do that?
回答1:
See these posts from Bil Simser:
- http://weblogs.asp.net/bsimser/archive/2008/06/04/the-first-spec-you-should-write-when-using-castle.aspx
- http://weblogs.asp.net/bsimser/archive/2008/06/27/testing-castle-windsor-mappings-part-deux.aspx
来源:https://stackoverflow.com/questions/731616/castle-windsor-how-to-test-that-all-registered-components-are-resolvable