Skip to content

Commit

Permalink
Fixed breaking tests from environment new line. Most templates will b…
Browse files Browse the repository at this point in the history
…e coming from VS-based csproj files. We will work out a good Mono fix later
  • Loading branch information
jmarnold committed Dec 2, 2011
1 parent 6188196 commit eaa7b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/FubuMVC.Tests/Templating/NewCommandEndToEndTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Bottles.Exploding;
using Bottles.Zipping;
using Fubu;
using Fubu.Templating;
using Fubu.Templating.Steps;
using FubuCore;
using FubuTestingSupport;
Expand Down Expand Up @@ -75,7 +74,7 @@ public void clone_git_repo_and_append_to_existing_solution()
_fileSystem.DeleteDirectory("Templating", "sample", "MyProject.Tests");
_fileSystem.WriteStringToFile(solutionFile, oldContents);

var lines = ((SolutionFileService) _command.SolutionFileService).SplitSolution(solutionContents);
var lines = solutionContents.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
var guid = _command.KeywordReplacer.Replace("GUID1");
lines[2].ShouldEqual("Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"MyProject\", \"MyProject\\MyProject.csproj\", \"{" + guid + "}\"");
lines[3].ShouldEqual("EndProject");
Expand Down
2 changes: 1 addition & 1 deletion src/FubuMVC.Tests/Templating/SolutionFileServiceTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void should_add_project_references()
service.AddProject(solutionFile, project);

solutionContents = system.ReadStringFromFile(solutionFile);
var lines = service.SplitSolution(solutionContents);
var lines = solutionContents.Split(new[] { Environment.NewLine }, StringSplitOptions.None);

lines[4].ShouldEqual("Project(\"{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}\") = \"Test\", \"example1\\example1.csproj\", \"{123}\"");
lines[5].ShouldEqual("EndProject");
Expand Down

0 comments on commit eaa7b52

Please sign in to comment.