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);
        });
    }
示例#2
0
    public void BadImage()
    {
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "BadAssembly.dll");

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