Class BrainAutomationTests
Contains tests related to running brains.
Implements
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Tests
Assembly: BotBrain.Core.Tests.dll
Syntax
[TestClass]
public class BrainAutomationTests : IDisposable
Constructors
View SourceBrainAutomationTests()
Declaration
public BrainAutomationTests()
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
TestBrainPausesRunningBot()
Test that a brain correctly pauses a bot when there's no recommendation and it's already running.
Declaration
[TestMethod]
public Task TestBrainPausesRunningBot()
Returns
Type | Description |
---|---|
Task | A task. |
TestEmptyBrain()
Test that an empty brain with no urges can run and doesn't produce recommendations.
Declaration
[TestMethod]
public Task TestEmptyBrain()
Returns
Type | Description |
---|---|
Task | A task. |
TestFakeBrainCanRun()
Test that a brain with repeated urges can run and produce recommendations.
Declaration
[TestMethod]
public Task TestFakeBrainCanRun()
Returns
Type | Description |
---|---|
Task | A task. |