C# 클래스 Protogame.Tests.MxTests

Tests relating to the multiplayer connection classes.
파일 보기 프로젝트 열기: RedpointGames/Protogame

공개 메소드들

메소드 설명
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