XmlContentTests LoadXmlContentFromFile Method Delta Engine Documentation

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 void LoadXmlContentFromFile()
Examples

[Test, Category("Slow"), Ignore]
public void LoadXmlContentFromFile()
{
    var xmlContent = ContentLoader.Load<XmlContent>("Test");
    Assert.False(xmlContent.IsDisposed);
    Assert.AreEqual("Root", xmlContent.Data.Name);
    Assert.AreEqual(1, xmlContent.Data.Children.Count);
    Assert.AreEqual("Hi", xmlContent.Data.Children[0].Name);
}
See Also