ListNamespaces() 공개 메소드

Lists the namespaces.
public ListNamespaces ( string assemblyLocation, string assemblyName ) : List
assemblyLocation string The assembly location.
assemblyName string Name of the assembly.
리턴 List
        public void PluginRuntimeHandler_ListNamespaces_WhenNullLocation_ExpectException()
        {
            //------------Setup for test--------------------------
            var pluginRuntimeHandler = new PluginRuntimeHandler();

            //------------Execute Test---------------------------
            pluginRuntimeHandler.ListNamespaces(null, "Foo");
        }
        public void PluginRuntimeHandler_ListNamespaces_WhenInvalidLocation_ExpectNoResults()
        {
            //------------Setup for test--------------------------
            var pluginRuntimeHandler = new PluginRuntimeHandler();

            //------------Execute Test---------------------------
            var result = pluginRuntimeHandler.ListNamespaces("z:\foo\asm.dll", "Foo");

            Assert.IsFalse(result.Any());
        }
        public void PluginRuntimeHandler_ListNamespaces_WhenValidLocation_ExpectNamespaces()
        {
            //------------Setup for test--------------------------
            var pluginRuntimeHandler = new PluginRuntimeHandler();
            var source = CreatePluginSource();

            //------------Execute Test---------------------------
            var result = pluginRuntimeHandler.ListNamespaces(source.AssemblyLocation, "Foo");

            //------------Assert Results-------------------------
            Assert.IsTrue(result.Any());
        }