예제 #1
0
        public void IsControllerContainer_NonExistingFileName_ReturnsFalse()
        {
            // Arrange
            var initializer = new DummyControllerContainerInitializer();

            // Act
            var result = initializer.IsControllerContainerPublic("C:\\NonExistingPath\\NonExistingAssembly.dll");

            // Assert
            Assert.IsFalse(result);
        }
예제 #2
0
        public void IsControllerContainer_NullFileName_ReturnsFalse()
        {
            // Arrange
            var initializer = new DummyControllerContainerInitializer();

            // Act
            var result = initializer.IsControllerContainerPublic(null);

            // Assert
            Assert.IsFalse(result);
        }
예제 #3
0
        public void IsControllerContainer_DesignerAssembly_ReturnTrue()
        {
            // Arrange
            var initializer = new DummyControllerContainerInitializer();

            // Act
            var result = initializer.IsControllerContainerPublic(typeof(DesignerController).Assembly.CodeBase);

            // Assert
            Assert.IsTrue(result);
        }