JsonContentTests LoadJsonContentFromFile Method Delta Engine Documentation

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

public void LoadJsonContentFromFile()
Examples

[Test, Category("Slow"), Ignore]
public void LoadJsonContentFromFile()
{
    var json = ContentLoader.Load<JsonContent>("Level");
    Assert.False(json.IsDisposed);
    Assert.AreEqual(9, json.Data.NumberOfNodes);
    Assert.AreEqual(48, json.Data.Get<int>("height"));
}
See Also