Class SerializationTests
Contains tests related to serialization with the overmind.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Overmind.Tests
Assembly: BotBrain.Overmind.Tests.dll
Syntax
[TestClass]
public class SerializationTests
Methods
View SourceTestLoadBrain(string, int, int, bool)
Test that the overmind can load a saved brain or "quality pass" with scenarios and roles.
Declaration
[TestMethod]
[DataRow(new object?[] { "MetaSimpleSingle", 1, 1, true })]
[DataRow(new object?[] { "MetaSimpleMultiple", 1, 2, true })]
[DataRow(new object?[] { "MetaConcurrent", 2, 2, true })]
[DataRow(new object?[] { "MetaSequential", 2, 2, false })]
public void TestLoadBrain(string brainName, int numScenarios, int numRoles, bool isConcurrent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | brainName | The brain name. |
| int | numScenarios | The expected number of scenarios. |
| int | numRoles | The expected number of roles. |
| bool | isConcurrent | The expected concurrency setting. |
TestSerializeBrain(string)
Test that the overmind can save and reload a "quality pass."
Declaration
[TestMethod]
[DataRow("MetaSimpleSingle")]
[DataRow("MetaSimpleMultiple")]
[DataRow("MetaConcurrent")]
[DataRow("MetaSequential")]
public void TestSerializeBrain(string brainName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | brainName | The brain name. |
TestSerializeSettings(string)
Test that the overmind can save and reload the quality pass settings/scenarios.
Declaration
[TestMethod]
[DataRow("MetaSimpleSingle")]
[DataRow("MetaSimpleMultiple")]
[DataRow("MetaConcurrent")]
[DataRow("MetaSequential")]
public void TestSerializeSettings(string brainName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | brainName | The brain name. |