C# Class Protogame.Tests.MxTests

Tests relating to the multiplayer connection classes.
Afficher le fichier Open project: RedpointGames/Protogame

Méthodes publiques

Méthode 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

Méthode Description
SimulateNetworkCycles ( int cycles, MxDispatcher dispatcher1, MxDispatcher dispatcher2 ) : void

Simulate a series of network cycles on the specified dispatchers.

Method Details

MxTests() public méthode

public MxTests ( IAssert assert ) : Prototest.Library.Version1
assert IAssert
Résultat Prototest.Library.Version1

TestAcknowledgeEventData() public méthode

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

TestConnectionWithUpdate() public méthode

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

TestConnectionWithoutUpdate() public méthode

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

TestConstruction() public méthode

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

TestHugeReliableData() public méthode

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

TestLargeReliableData() public méthode

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

TestLostIsNotTriggered() public méthode

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

TestSequenceNumbers() public méthode

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

TestUnreliableData() public méthode

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