Esempio n. 1
0
        public void IsController_DummyControl_ReturnsFalse()
        {
            //Act
            var result = SitefinityControllerFactroryExtensions.IsController(null, typeof(DummyControl));

            //Assert
            Assert.IsFalse(result, "The method recognize simple Control as Controller.");
        }
Esempio n. 2
0
        public void IsController_DummyController_ReturnsTrue()
        {
            //Act
            var result = SitefinityControllerFactroryExtensions.IsController(null, typeof(DummyController));

            //Assert
            Assert.IsTrue(result, "The method fail to recognize a controller.");
        }
Esempio n. 3
0
        public void IsController_DummyControl_ReturnsFalse()
        {
            var result = SitefinityControllerFactroryExtensions.IsController(null, typeof(DummyControl));

            Assert.IsFalse(result);
        }