Beispiel #1
0
 public void XmlCodeSnippetSerializeTest()
 {
     var xmlCodeSnippet = new XmlCode
     {
         Tags = XmlCodeSnippetTestTags,
         Code = XmlCodeSnippetTestCode
     };
     var xmlCodeSnippetString = XmlHelper.SerializeToString(xmlCodeSnippet);
     Assert.AreEqual(xmlCodeSnippetString, XmlCodeSnippetTestString);
 }
 private void ProcessXmlCode(XmlCode xmlCode, CodeContext parentContext)
 {
     _codeSnippets.Add(
         new CodeSnippet(
             xmlCode.Code.Strip(),
             Split(xmlCode.Tags),
             parentContext));
 }
Beispiel #3
0
 public CodeItem(XmlCode xmlCode)
 {
     Code = xmlCode.Code.Strip();
     Tags = xmlCode.Tags.Strip();
 }