public void DefaultControllerNameDetector_DetectsCatController_AsNameCat() {
            // given
            IControllerNameDetector detector = new DefaultControllerNameDetector();
            Type catControllerType = typeof (CatController);

            // when
            string controllerName = detector.GetControllerName(catControllerType);

            // assert
            Assert.AreEqual("Cat", controllerName, true);
        }
        public void DefaultControllerNameDetector_DetectsController_AsUnknown()
        {
            // given
            IControllerNameDetector detector = new DefaultControllerNameDetector();
            Type catControllerType = typeof(Controller);

            // when
            string controllerName = detector.GetControllerName(catControllerType);

            // assert
            Assert.IsNull(controllerName);
        }
        public void DefaultControllerNameDetector_DetectsCatController_AsNameCat()
        {
            // given
            IControllerNameDetector detector = new DefaultControllerNameDetector();
            Type catControllerType           = typeof(CatController);

            // when
            string controllerName = detector.GetControllerName(catControllerType);

            // assert
            Assert.AreEqual("Cat", controllerName, true);
        }
        public void DefaultControllerNameDetector_DetectsController_AsUnknown()
        {
            // given
            IControllerNameDetector detector = new DefaultControllerNameDetector();
            Type catControllerType           = typeof(Controller);

            // when
            string controllerName = detector.GetControllerName(catControllerType);

            // assert
            Assert.IsNull(controllerName);
        }