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."); }
public void GetControllerName_WithoutType_ThrowsException() { // Act var controllerName = SitefinityControllerFactoryExtensions.GetControllerName(null, null); }