public void Should_find_controllers_in_the_assembly_of_the_profile() { // Arrange var profile = new ForAllControllersProfile(); profile.Initialize(new SecurityRuntime()); var expectedNamespace = profile.GetType().Assembly.GetName().Name; // Act profile.Configure(); // Assert Assert.That(profile.Runtime.PolicyContainers.Any(), Is.True); Assert.That(profile.Runtime.PolicyContainers.All(pc => pc.ControllerName.StartsWith(expectedNamespace)), Is.True); }