public void IsController_DummyController_ReturnsTrue() { // Act var result = SitefinityControllerFactoryExtensions.IsController(null, typeof(DummyController)); // Assert Assert.IsTrue(result, "The method fail to recognize a controller."); }
public void IsController_DummyControl_ReturnsFalse() { // Act var result = SitefinityControllerFactoryExtensions.IsController(null, typeof(DummyControl)); // Assert Assert.IsFalse(result, "The method recognize simple Control as Controller."); }
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); }