JsonContentTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    DeltaEngine.Content.Json.Tests JsonContentTests

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 class JsonContentTests : TestWithMocksOrVisually

The JsonContentTests type exposes the following members.

Constructors

  NameDescription
Public methodJsonContentTests
Initializes a new instance of the JsonContentTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Public methodLoadJsonContentFromFile
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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