public CsProjectBuilder(string title, DirectoryInfo workingFolder, Guid projectGuid, Guid AssemblyGuid) { AssemblyInfoCs = new AssemblyInfoCs(title, AssemblyGuid); CsProj = new ProjectGroup(title, projectGuid); WorkingFolder = workingFolder; Title = title; PropertiesFolder = new DirectoryInfo(Path.Combine(WorkingFolder.FullName, "Properties")); AssemblyInfoFile = new FileInfo(Path.Combine(PropertiesFolder.FullName, "AssemblyInfo.cs")); }
public void VerifyAssemblyInfoLines() { AssemblyInfoCs AssInfo = new AssemblyInfoCs("MyAssembly", Guid.Empty); Assert.AreEqual("MyAssembly", AssInfo.Product); var currentLines = AssInfo.Lines.ToList(); var etallonLines = ReadLines(new FileInfo("AssemblyInfo.txt").OpenText()). Where(L => !L.StartsWith("//") && !string.IsNullOrEmpty(L)).ToList(); Assert.AreEqual(etallonLines.Count, currentLines.Count); for (int i = 0; i < etallonLines.Count; ++i) { Assert.AreEqual(etallonLines[i].Trim(), currentLines[i].Trim(), true); } }