C# Класс Protogame.Tests.MxTests

Tests relating to the multiplayer connection classes.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
SimulateNetworkCycles ( int cycles, MxDispatcher dispatcher1, MxDispatcher dispatcher2 ) : void

Simulate a series of network cycles on the specified dispatchers.

Описание методов

MxTests() публичный Метод

public MxTests ( IAssert assert ) : Prototest.Library.Version1
assert IAssert
Результат Prototest.Library.Version1

TestAcknowledgeEventData() публичный Метод

Test that a small piece of data can be sent over the unreliable protocol.
public TestAcknowledgeEventData ( ) : void
Результат void

TestConnectionWithUpdate() публичный Метод

Test that the dispatcher can connect and update without throwing an exception.
public TestConnectionWithUpdate ( ) : void
Результат void

TestConnectionWithoutUpdate() публичный Метод

Test that the dispatcher can connect without throwing an exception.
public TestConnectionWithoutUpdate ( ) : void
Результат void

TestConstruction() публичный Метод

Test that the dispatcher can be constructed without throwing an exception.
public TestConstruction ( ) : void
Результат void

TestHugeReliableData() публичный Метод

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.
public TestHugeReliableData ( ) : void
Результат void

TestLargeReliableData() публичный Метод

Test that large amounts of data can be sent over the reliable connection without data becoming corrupt or lost.
public TestLargeReliableData ( ) : void
Результат void

TestLostIsNotTriggered() публичный Метод

Test that a small piece of data can be sent over the unreliable protocol.
public TestLostIsNotTriggered ( ) : void
Результат void

TestSequenceNumbers() публичный Метод

Verifies that the sequence number difference is calculated correctly for different sequence numbers.
public TestSequenceNumbers ( ) : void
Результат void

TestUnreliableData() публичный Метод

Test that a small piece of data can be sent over the unreliable protocol.
public TestUnreliableData ( ) : void
Результат void