public void CanFindProjectConfigurationSections() { var parser = new SolutionFileParser(new FakeFileSystem()); var solution = parser.Parse(new FilePath("c:\\x.sln", false), iocSolutionJan2010.AsLines()); Assert.IsNotNull(solution.Globals); Assert.IsNotNull(solution.Globals.ProjectConfigurationPlatforms); Assert.IsNotNull(solution.Globals.SolutionConfigurationPlatforms); }
public void CanRoundTripSolutionFile() { var parser = new SolutionFileParser(); var solutionFile = parser.Parse(new FilePath ("c:\\x.sln", false), iocSolutionJan2010.AsLines()); var roundTripped = string.Join(Environment.NewLine, solutionFile.Lines().ToArray()) + Environment.NewLine; Assert.That(roundTripped, Is.EqualTo(iocSolutionJan2010), "Roundtripping loading the solution should not have changed it at all."); }
public void CanRoundTripSolutionFile() { var parser = new SolutionFileParser(new FakeFileSystem()); var solutionFile = parser.Parse(new FilePath ("c:\\x.sln", false), iocSolutionJan2010.AsLines()); var roundTripped = ToSolutionString(solutionFile.Lines()); Assert.That(roundTripped, Is.EqualTo(iocSolutionJan2010), "Roundtripping loading the solution should not have changed it at all."); }
public static ExternalSolutionApi GetSolutionFile(string path) { var parser = new SolutionFileParser(); var filePath = new FilePath(path, false); return(new ExternalSolutionApi(parser.Parse(filePath, filePath.FileContent().AsLines()))); }
public void CanRoundTripSolutionFile() { var parser = new SolutionFileParser(); var solutionFile = parser.Parse(new FilePath("c:\\x.sln", false), iocSolutionJan2010.AsLines()); var roundTripped = string.Join(Environment.NewLine, solutionFile.Lines().ToArray()) + Environment.NewLine; Assert.That(roundTripped, Is.EqualTo(iocSolutionJan2010), "Roundtripping loading the solution should not have changed it at all."); }
public static void ClassInit(TestContext testContext) { _solutionFile = SolutionFileParser.Parse(new SolutionFileInfo(@"D:\GitHub\SolutionAndProjects\SolutionAndProjects\SolutionAndProjects.sln")); }
public static ExternalSolutionApi GetSolutionFile(string path) { var parser = new SolutionFileParser(); var filePath = new FilePath(path, false); return new ExternalSolutionApi(parser.Parse(filePath, filePath.FileContent().AsLines())); }