XmlSnippetTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content.Xml.Tests XmlSnippetTests

Namespace: DeltaEngine.Content.Xml.Tests
Assembly: DeltaEngine.Content.Xml.Tests (in DeltaEngine.Content.Xml.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class XmlSnippetTests

The XmlSnippetTests type exposes the following members.

Constructors

  NameDescription
Public methodXmlSnippetTests
Initializes a new instance of the XmlSnippetTests class
Top
Methods

  NameDescription
Public methodIgnoresLeadingJunk
Public methodToAndFromXmlSnippetLeavesTextUnchanged
Top
Examples

[Test]
public void ToAndFromXmlSnippetLeavesTextUnchanged()
{
    var snippet = CreateTestXmlData().ToString();
    var xmlSnippet = new XmlSnippet(snippet);
    Assert.AreEqual(snippet, xmlSnippet.Root.ToString());
}
[Test]
public void IgnoresLeadingJunk()
{
    var snippet = CreateTestXmlData().ToString();
    var xmlSnippet = new XmlSnippet("blahblah" + snippet);
    Assert.AreEqual(snippet, xmlSnippet.Root.ToString());
}
See Also