public static Assembly Load(string fileName, string assemblyName)
        {
            var context  = new SingleTestLoadContext(fileName);
            var assembly = context.LoadFromAssemblyName(new AssemblyName(assemblyName));

            return(assembly);
        }
        public static Assembly Load(string fileName, string assemblyName)
        {
            var context = new SingleTestLoadContext(fileName);
            var assembly = context.LoadFromAssemblyName(new AssemblyName(assemblyName));

            return assembly;
        }
예제 #3
0
        public void When_analyzing(string fileName, string assemblyName, Language? expected)
        {
            var context = new SingleTestLoadContext(fileName);
            var assembly = context.LoadFromAssemblyName(new AssemblyName(assemblyName));

            var analyzer = new AssemblyAnalyzer(assembly);

            analyzer.DetectedLanguage.Should().Be(expected);
        }
예제 #4
0
        public void When_analyzing(string fileName, string assemblyName, Language?expected)
        {
            var context  = new SingleTestLoadContext(fileName);
            var assembly = context.LoadFromAssemblyName(new AssemblyName(assemblyName));

            var analyzer = new AssemblyAnalyzer(assembly);

            analyzer.DetectedLanguage.Should().Be(expected);
        }