示例#1
0
        public void GetControllers_CurrentAssembly_GetsControllers()
        {
            // Arrange
            var initializer = new DummyControllerContainerInitializer();

            // Act
            var types = initializer.GetControllersPublic(new[] { AssemblyLoaderHelper.GetTestUtilitiesAssembly() });

            // Assert
            Assert.IsNotNull(types, "GetControllers returned null.");

            // Don't check for exact count. They can change while this assembly grows.
            Assert.IsTrue(types.Any(), "No controllers were found.");
        }