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; }
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); }
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); }