Пример #1
0
 public void Parse_should_populate_Global_and_Projects_properties()
 {
     var parser = new RealParser.SolutionParser(Utility.GetFixturePath("NDriven.sln"));
     var solution = parser.Parse();
     Assert.IsInstanceOf<IEnumerable<GlobalSection>>(solution.Global);
     Assert.IsInstanceOf<IEnumerable<Project>>(solution.Projects);
 }
Пример #2
0
        public void Parse_should_populate_Global_and_Projects_properties()
        {
            var parser   = new RealParser.SolutionParser(Utility.GetFixturePath("NDriven.sln"));
            var solution = parser.Parse();

            Assert.IsInstanceOf <IEnumerable <GlobalSection> >(solution.Global);
            Assert.IsInstanceOf <IEnumerable <Project> >(solution.Projects);
        }
        public void Renderer2_should_render_same_contents()
        {
            var contents = Utility.GetFixtureContents("Microsoft.AspNet.SignalR.sln");
            var parser   = new RealParser.SolutionParser(Utility.GetFixturePath("Microsoft.AspNet.SignalR.sln"));
            var solution = parser.Parse();
            var renderer = new SolutionRenderer(solution);
            var rendered = renderer.Render();

            Assert.AreEqual(contents, rendered);
        }
Пример #4
0
 public static ISolution Parse(string path)
 {
     var parser = new SolutionParser(path);
     return parser.Parse();
 }
Пример #5
0
 public void Constructing_with_unknown_path_throws_exception()
 {
     var parser = new RealParser.SolutionParser("nope");
 }
Пример #6
0
 public void Constructing_with_unknown_path_throws_exception()
 {
     var parser = new RealParser.SolutionParser("nope");
 }
Пример #7
0
        public static ISolution Parse(string path)
        {
            var parser = new SolutionParser(path);

            return(parser.Parse());
        }
Пример #8
0
        public static ISolution Parse(TextReader reader)
        {
            var parser = new SolutionParser(reader);

            return(parser.Parse());
        }
Пример #9
0
        public static ISolution Parse(Stream stream)
        {
            var parser = new SolutionParser(stream);

            return(parser.Parse());
        }