private CsProj GetProject(string fileName) { _file = SampleFileHelper.GetCsProjFile(fileName); var reader = new CsProjReader(); return(reader.Read(_file)); }
private void TestRender() { renderer = new SlnFileRenderer(solution); string actualContents = renderer.Render().Replace("\r\n", "\n").Replace("\n\n", "\n"); string expectedContents = SampleFileHelper.GetSlnFileContents(solution.Name).Replace("\r\n", "\n").Replace("\n\n", "\n"); Assert.That(actualContents, Is.EqualTo(expectedContents)); }