Show / Hide Table of Contents

Class SerializationTests

Contains tests related to serialization with the overmind.

Inheritance
object
SerializationTests
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain.Overmind.Tests
Assembly: BotBrain.Overmind.Tests.dll
Syntax
[TestClass]
public class SerializationTests

Methods

View Source

TestLoadBrain(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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX