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 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); }
public static ISolution Parse(string path) { var parser = new SolutionParser(path); return parser.Parse(); }
public void Constructing_with_unknown_path_throws_exception() { var parser = new RealParser.SolutionParser("nope"); }
public static ISolution Parse(string path) { var parser = new SolutionParser(path); return(parser.Parse()); }
public static ISolution Parse(TextReader reader) { var parser = new SolutionParser(reader); return(parser.Parse()); }
public static ISolution Parse(Stream stream) { var parser = new SolutionParser(stream); return(parser.Parse()); }