예제 #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());
        }