Beispiel #1
0
    void DoWithCurrentRepo(Action <VersionInfo> doWithVer)
    {
        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        if (doWithVer != null)
        {
            doWithVer(version);
        }
    }
Beispiel #2
0
    public void Win32Resource()
    {
        var productVersion = FileVersionInfo.GetVersionInfo(afterAssemblyPath).ProductVersion;

        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        var nameOfCurrentBranch = version.BranchName;
        Assert.True(productVersion.Contains(nameOfCurrentBranch));
    }
Beispiel #3
0
    public void Win32Resource()
    {
        var productVersion = FileVersionInfo.GetVersionInfo(afterAssemblyPath).ProductVersion;

        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        var nameOfCurrentBranch = version.BranchName;

        Assert.True(productVersion.Contains(nameOfCurrentBranch));
    }
Beispiel #4
0
    public void TemplateIsReplaced()
    {
        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        var nameOfCurrentBranch = version.BranchName;

        var customAttributes = (AssemblyInformationalVersionAttribute)assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false)
                .First();
        Assert.True(customAttributes.InformationalVersion.Contains(nameOfCurrentBranch));
    }
Beispiel #5
0
    public void TemplateIsReplaced()
    {
        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        var nameOfCurrentBranch = version.BranchName;

        var customAttributes = (AssemblyInformationalVersionAttribute)assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false)
                               .First();

        Assert.True(customAttributes.InformationalVersion.Contains(nameOfCurrentBranch));
    }
Beispiel #6
0
    void DoWithCurrentRepo(Action<VersionInfo> doWithVer)
    {
        var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory);

        if (doWithVer != null) doWithVer(version);
    }