Ok, so I'm trying the second approach. Would this be correct?

[Fact]public void AllControllersExposeThemselvesAsService()
{
        var controllersWithWrongName = 
InstallerTestHelper.GetHandlersFor(typeof(IController), container)
                .Where(c => c.ComponentModel.Services.Any(s => s != 
c.ComponentModel.Implementation))
                .ToArray();
        Assert.Empty(controllersWithWrongName);
}

/Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/castle-project-users/-/Lnj3aSbPuAsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to