示例#1
0
 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);
 }
示例#3
0
 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();
 }
示例#5
0
 private IList<XamlNode> FlattenNodesFromXaml(string xaml)
 {
     var pullParser = new XamlNodesPullParser(WiringContext);
     var protoNodes = new SuperProtoParser(WiringContext).Parse(xaml);
     return pullParser.Parse(protoNodes).ToList();
 }