void DoWithCurrentRepo(Action <VersionInfo> doWithVer) { var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory); if (doWithVer != null) { doWithVer(version); } }
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)); }
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)); }
void DoWithCurrentRepo(Action<VersionInfo> doWithVer) { var version = new MockSvnHelper().GetSvnInfo(Environment.CurrentDirectory); if (doWithVer != null) doWithVer(version); }