public void read_and_write_a_solution_with_projects() { var solution = Solution.LoadFrom("FubuMVC.SlickGrid.sln"); solution.Save("fake.sln"); var original = new FileSystem().ReadStringFromFile("FubuMVC.SlickGrid.sln").Trim().SplitOnNewLine() .Select(x => x.Replace('\\', '/')); var newContent = new FileSystem().ReadStringFromFile("fake.sln").SplitOnNewLine().Select(x => x.Replace('\\', '/')); newContent.Each(x => Debug.WriteLine(x)); newContent.ShouldHaveTheSameElementsAs(original); }
public void write_a_solution() { var solution = Solution.CreateNew(".".ToFullPath(), "foo"); solution.Save(); var original = new FileSystem().ReadStringFromFile( ".".ToFullPath() .ParentDirectory() .ParentDirectory() .ParentDirectory() .AppendPath("FubuCsProjFile", "Solution.txt")).SplitOnNewLine(); var newContent = new FileSystem().ReadStringFromFile("foo.sln").SplitOnNewLine(); newContent.ShouldHaveTheSameElementsAs(original); }