Пример #1
0
        public void IsControllerAssembly_DesignerAssembly_ReturnTrue()
        {
            var initializer = new DummyInitializer();
            var result      = initializer.IsControllerContainerPublic(typeof(DesignerController).Assembly.CodeBase);

            Assert.IsTrue(result);
        }
Пример #2
0
        public void IsControllerAssembly_NonExistingFileName_ReturnsFalse()
        {
            var initializer = new DummyInitializer();
            var result      = initializer.IsControllerContainerPublic("C:\\NonExistingPath\\NonExistingAssembly.dll");

            Assert.IsFalse(result);
        }
Пример #3
0
        public void IsControllerAssembly_NullFileName_ReturnsFalse()
        {
            var initializer = new DummyInitializer();
            var result      = initializer.IsControllerContainerPublic(null);

            Assert.IsFalse(result);
        }
Пример #4
0
        public void IsControllerAssembly_NullFileName_ReturnsFalse()
        {
            var initializer = new DummyInitializer();
            var result = initializer.IsControllerContainerPublic(null);

            Assert.IsFalse(result);
        }
Пример #5
0
        public void IsControllerAssembly_NonExistingFileName_ReturnsFalse()
        {
            var initializer = new DummyInitializer();
            var result = initializer.IsControllerContainerPublic("C:\\NonExistingPath\\NonExistingAssembly.dll");

            Assert.IsFalse(result);
        }
Пример #6
0
        public void IsControllerAssembly_DesignerAssembly_ReturnTrue()
        {
            var initializer = new DummyInitializer();
            var result = initializer.IsControllerContainerPublic(typeof(DesignerController).Assembly.CodeBase);

            Assert.IsTrue(result);
        }