Class ClassManagerTests
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Tests
Assembly: GameStateTracker.Tests.dll
Syntax
[TestClass]
public class ClassManagerTests
Methods
View SourceTestClassManagerThrowsForMissingClassName()
Verify the class manager throws an exception if it cannot find a game class name for the given type.
Declaration
[TestMethod]
public void TestClassManagerThrowsForMissingClassName()
TestClassManagerWithCustomProperty()
Verify that updating a game object re-uses objects in the cache, and that transient properties are not discarded.
Declaration
[TestMethod]
public Task TestClassManagerWithCustomProperty()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithCustomSubclass()
Verify a property specified on the base class is also retrieved for subclass objects, even though the base class was queried.
Declaration
[TestMethod]
public Task TestClassManagerWithCustomSubclass()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithDataContract()
Verify that properties can be detected for a DataContract-supported C# type.
Declaration
[TestMethod]
public Task TestClassManagerWithDataContract()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithInterfaceProperty()
Verify that properties can be added to a game class without specifying a C# type.
Declaration
[TestMethod]
public Task TestClassManagerWithInterfaceProperty()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithListProperty()
Verify the property value is a list of strings.
Declaration
[TestMethod]
public Task TestClassManagerWithListProperty()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithMissingProperty()
Verify the property value is null if the queried property does not exist.
Declaration
[TestMethod]
public Task TestClassManagerWithMissingProperty()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |
TestClassManagerWithUnimportedSubclass()
TODO. This test sometimes fails.
Declaration
[Ignore]
[TestMethod]
public Task TestClassManagerWithUnimportedSubclass()
Returns
Type | Description |
---|---|
Task | A task that completes when the test is done. |