Ejemplo n.º 1
0
        public void GetControllerName_WithoutControllerSuffix_ReturnsTypeName()
        {
            //Act
            var controllerName = SitefinityControllerFactroryExtensions.GetControllerName(null, typeof(DummyControl));

            //Assert
            Assert.AreEqual("DummyControl", controllerName, "The controller name is not retrieved correctly.");
        }
Ejemplo n.º 2
0
        public void GetControllerName_WithoutControllerSuffix_ReturnsTypeName()
        {
            var controllerName = SitefinityControllerFactroryExtensions.GetControllerName(null, typeof(DummyControl));

            Assert.AreEqual("DummyControl", controllerName);
        }
Ejemplo n.º 3
0
 public void GetControllerName_WithoutType_ThrowsException()
 {
     var controllerName = SitefinityControllerFactroryExtensions.GetControllerName(null, null);
 }