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);
 }
Пример #2
0
 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.");
 }
Пример #4
0
        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())));
        }
Пример #5
0
        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.");
        }
Пример #6
0
        public static void ClassInit(TestContext testContext)
        {
            _solutionFile = SolutionFileParser.Parse(new SolutionFileInfo(@"D:\GitHub\SolutionAndProjects\SolutionAndProjects\SolutionAndProjects.sln"));

        }
Пример #7
0
        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()));
		}