Test if classes are registered in unity

While writing some sample applications for the upcoming release of Prism (Composite Application Guidance for WPF and Silverlight) I ran into a small challenge. “How do you verify (with unit tests) that the right classes are registered in your DI-container?” In my case, the container is Unity, but Unity does not have any ‘IsTypeRegistered’ methods…

2