public ParsingTests() { p = new ProtoNodeBuilder(WiringContext.TypeContext); x = new XamlNodeBuilder(WiringContext.TypeContext); sut = new XamlNodesPullParser(WiringContext); sampleData = new SampleData(p, x); }
public MarkupExtensionsParsingFromProtoToXaml() { p = new ProtoNodeBuilder(WiringContext.TypeContext); x = new XamlNodeBuilder(WiringContext.TypeContext); sut = new XamlNodesPullParser(WiringContext); }
private ICollection<XamlNode> ExtractNodesFromPullParser(string xml) { var pullParser = new XamlNodesPullParser(WiringContext); return pullParser.Parse(new SuperProtoParser(WiringContext).Parse(xml)).ToList(); }
private IEnumerable<XamlNode> ConvertToNodes(string xaml) { var wiringContext = WiringContext; var pullParser = new XamlNodesPullParser(wiringContext); var protoParser = new ProtoParser(wiringContext.TypeContext); return pullParser.Parse(protoParser.Parse(xaml)).ToList(); }
private IList<XamlNode> FlattenNodesFromXaml(string xaml) { var pullParser = new XamlNodesPullParser(WiringContext); var protoNodes = new SuperProtoParser(WiringContext).Parse(xaml); return pullParser.Parse(protoNodes).ToList(); }