public void BadImage() { var path = Path.Combine(AssemblyLocation.CurrentDirectory, @"Fody\BadAssembly.dll"); Assert.Throws <WeavingException>(() => { AssemblyVersionReader.GetAssemblyVersion(path); }); }
public void BadImage() { var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "BadAssembly.dll"); Assert.Throws <WeavingException>(() => { AssemblyVersionReader.GetAssemblyVersion(path); }); }
public void BadImage() { AssemblyVersionReader.GetAssemblyVersion(Path.Combine(Environment.CurrentDirectory, "BadAssembly.dll")); }
public void BadImage() { Assert.Throws <WeavingException>(() => AssemblyVersionReader.GetAssemblyVersion(Path.Combine(Environment.CurrentDirectory, "BadAssembly.dll"))); }