GetAssemblyVersion() public static method

public static GetAssemblyVersion ( string path ) : Version
path string
return Version
コード例 #1
0
    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")));
 }