Show / Hide Table of Contents

Class ParameterSerializationTests

Contains tests related to serializing brain parameter. TODO: add more.

Inheritance
object
ParameterSerializationTests
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.Tests
Assembly: BotBrain.Core.Tests.dll
Syntax
[TestClass]
public class ParameterSerializationTests

Methods

View Source

TestParameterNotFoundException()

Test that parameters which don't exist throw an exception when retrieved.

Declaration
[TestMethod]
[ExpectedException(typeof(KeyNotFoundException))]
public void TestParameterNotFoundException()
View Source

TestParameterSerialization()

Test that parameters can be serialized and deserialized.

Declaration
[TestMethod]
public void TestParameterSerialization()
View Source

TestParameterTryGet(string)

Test that parameters which are invalid don't throw an exception when retrieved.

Declaration
[TestMethod]
[DataRow(null)]
[DataRow("Bar")]
public void TestParameterTryGet(string value)
Parameters
Type Name Description
string value

The parameter value.

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