コード例 #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);
        }