C# Class Protogame.Tests.MxTests

Tests relating to the multiplayer connection classes.
Mostra file Open project: RedpointGames/Protogame

Public Methods

Method Description
MxTests ( IAssert assert ) : Prototest.Library.Version1
TestAcknowledgeEventData ( ) : void

Test that a small piece of data can be sent over the unreliable protocol.

TestConnectionWithUpdate ( ) : void

Test that the dispatcher can connect and update without throwing an exception.

TestConnectionWithoutUpdate ( ) : void

Test that the dispatcher can connect without throwing an exception.

TestConstruction ( ) : void

Test that the dispatcher can be constructed without throwing an exception.

TestHugeReliableData ( ) : void

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.

TestLargeReliableData ( ) : void

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.

TestLostIsNotTriggered ( ) : void

Test that a small piece of data can be sent over the unreliable protocol.

TestSequenceNumbers ( ) : void

Verifies that the sequence number difference is calculated correctly for different sequence numbers.

TestUnreliableData ( ) : void

Test that a small piece of data can be sent over the unreliable protocol.

Private Methods

Method Description
SimulateNetworkCycles ( int cycles, MxDispatcher dispatcher1, MxDispatcher dispatcher2 ) : void

Simulate a series of network cycles on the specified dispatchers.

Method Details

MxTests() public method

public MxTests ( IAssert assert ) : Prototest.Library.Version1
assert IAssert
return Prototest.Library.Version1

TestAcknowledgeEventData() public method

Test that a small piece of data can be sent over the unreliable protocol.
public TestAcknowledgeEventData ( ) : void
return void

TestConnectionWithUpdate() public method

Test that the dispatcher can connect and update without throwing an exception.
public TestConnectionWithUpdate ( ) : void
return void

TestConnectionWithoutUpdate() public method

Test that the dispatcher can connect without throwing an exception.
public TestConnectionWithoutUpdate ( ) : void
return void

TestConstruction() public method

Test that the dispatcher can be constructed without throwing an exception.
public TestConstruction ( ) : void
return void

TestHugeReliableData() public method

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.
public TestHugeReliableData ( ) : void
return void

TestLargeReliableData() public method

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.
public TestLargeReliableData ( ) : void
return void

TestLostIsNotTriggered() public method

Test that a small piece of data can be sent over the unreliable protocol.
public TestLostIsNotTriggered ( ) : void
return void

TestSequenceNumbers() public method

Verifies that the sequence number difference is calculated correctly for different sequence numbers.
public TestSequenceNumbers ( ) : void
return void

TestUnreliableData() public method

Test that a small piece of data can be sent over the unreliable protocol.
public TestUnreliableData ( ) : void
return void