public void solution_file_is_generated_correctly() { SlnFile.ReadString().ShouldBe("\r\nMicrosoft Visual Studio Solution File, Format Version 11.00\r\n" + "# Visual Studio 2010\r\n" + string.Format("Project(\"{{{0}}}\") = \"{1}\", \"{2}\", \"{{{3}}}\"\r\n", ProjectConstants.GuidFromType("csharp").ToString().ToUpper(), _projectFile.NameWithoutExtension, _projectFile.Path.MakeRelative(SlnFile.Parent.Path), _projectGuid.ToString().ToUpper()) + "EndProject\r\n"); }
public void solution_roundtrips(string solutionFile) { if (!solutionFile.EndsWith("\r\n")) { solutionFile += "\r\n"; } given_solution_file("solution.sln", solutionFile); when_reading_solution(); Solution.Save(); SlnFile.ReadString().ShouldBe(solutionFile); }
public void solution_addin_is_added() { SlnFile.ReadString().ShouldContain(ComConstants.ADD_IN_PROGID_2010); }