Inheritance Hierarchy
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
The XmlSnippetTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlSnippetTests | Initializes a new instance of the XmlSnippetTests class |
Methods
Name | Description | |
---|---|---|
IgnoresLeadingJunk | ||
ToAndFromXmlSnippetLeavesTextUnchanged |
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