GetAssemblyVersion() public static method

public static GetAssemblyVersion ( string path ) : Version
path string
return Version
    public void BadImage()
    {
        var path = Path.Combine(AssemblyLocation.CurrentDirectory, @"Fody\BadAssembly.dll");

        Assert.Throws <WeavingException>(() =>
        {
            AssemblyVersionReader.GetAssemblyVersion(path);
        });
    }
Esempio n. 2
0
    public void BadImage()
    {
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "BadAssembly.dll");

        Assert.Throws <WeavingException>(() =>
        {
            AssemblyVersionReader.GetAssemblyVersion(path);
        });
    }
Esempio n. 3
0
 public void BadImage()
 {
     AssemblyVersionReader.GetAssemblyVersion(Path.Combine(Environment.CurrentDirectory, "BadAssembly.dll"));
 }
Esempio n. 4
0
 public void BadImage()
 {
     Assert.Throws <WeavingException>(() => AssemblyVersionReader.GetAssemblyVersion(Path.Combine(Environment.CurrentDirectory, "BadAssembly.dll")));
 }