示例#1
0
        public void GetControllerName_WithoutControllerSuffix_ReturnsTypeName()
        {
            // Act
            var controllerName = SitefinityControllerFactoryExtensions.GetControllerName(null, typeof(DummyControl));

            // Assert
            Assert.AreEqual("DummyControl", controllerName, "The controller name is not retrieved correctly.");
        }
示例#2
0
 public void GetControllerName_WithoutType_ThrowsException()
 {
     // Act
     var controllerName = SitefinityControllerFactoryExtensions.GetControllerName(null, null);
 }