The test base. More...
Public Member Functions | |
TcpTests () | |
Initializes a new instance of the TcpTests class. More... | |
void | Join () |
The join. More... | |
void | JoinWithChannel () |
The join with channel. More... | |
virtual void | JoinWithPropertiesInt () |
The join with properties int. More... | |
void | JoinWithPropertiesString () |
The join with properties string. More... | |
void | JoinWithPropertyBroadcast () |
The join with property broadcast. More... | |
void | SendCustomEvent () |
The send custom event. More... | |
void | SendCustomEventToActorList () |
Sends a custom event to a list of actors. More... | |
virtual void | SendCustomEventWithLargeData () |
The send custom event with large data. More... | |
void | SendPing () |
The send ping. More... | |
virtual void | SetPropertiesWithBroadcast () |
The set properties with broadcast. More... | |
virtual void | SetPropertiesWithBroadcastV15 () |
The set properties with broadcast v 15. More... | |
Protected Types | |
enum | PropertyKeys { PropertyKeys.ActorName, PropertyKeys.ActorAge, PropertyKeys.RoomColor, PropertyKeys.RoomTemperature } |
The property keys. More... | |
Protected Member Functions | |
virtual object | GetActorNumberKey (int actorNumber) |
The get actor number key. More... | |
virtual TestClient | InitClient () |
The init client. More... | |
void | JoinClientsToRoom (string roomName, TestClient client1, TestClient client2) |
The join clients to room. More... | |
void | JoinClientsToRoom (string roomName, TestClient client1, TestClient client2, Hashtable clientProperties1, Hashtable clientProperties2, bool broadcastClientProperties) |
The join clients to room. More... | |
void | LeaveClientsFromRoom (TestClient client1, TestClient client2) |
The leave clients from room. More... | |
void | LogElapsedTime (ILogger logger, string prefix, TimeSpan elapsedTime, long numItems) |
The log elapsed time. More... | |
Static Protected Member Functions | |
static void | CheckDefaultEventParameters (EventData eventArgs, OperationCode operationCode, int actorNumber) |
The check default event params. More... | |
static void | CheckDefaultEventParameters (EventData eventArgs, EventCode eventEventCode, int actorNumber) |
The check default event params. More... | |
static void | CheckDefaultOperationParameters (OperationResponse response, OperationCode operationCode) |
The check default operation params. More... | |
static void | CheckEventParam (EventData eventArgs, ParameterKey paramKey, object expectedValue) |
The check event param. More... | |
static void | CheckEventParam (EventData eventArgs, object key, object expectedValue) |
The check event param. More... | |
static void | CheckEventParamExists (EventData eventArgs, ParameterKey paramKey) |
The check event param exists. More... | |
static void | CheckEventParamExists (EventData eventArgs, object key) |
The check event param exists. More... | |
static void | CheckJoinEvent (EventData eventArgs, int actorNumber) |
The check join event. More... | |
static void | CheckJoinEvent (EventData eventArgs, int actorNumber, Hashtable expectedActorProperties) |
The check join event. More... | |
static void | CheckJoinResponse (OperationResponse operationResponse, int expectedActorNumber) |
The check join response. More... | |
static void | CheckParam (OperationResponse response, ParameterKey paramKey, object expectedValue) |
The check param. More... | |
static void | CheckParamExists (OperationResponse response, ParameterKey paramKey) |
The check param exists. More... | |
static byte[] | CreateByteArrayFromHexString (string hexString, char delimiter) |
Converts a hex string to an byte array. More... | |
static OperationRequest | CreateJoinRequest (string roomName, Hashtable properties, bool broadcastProperties) |
The create join request. More... | |
static string | CreateRandomRoomName () |
The create random room name. More... | |
Properties | |
int | WaitTime [get, set] |
Gets or sets WaitTime. More... | |
The test base.
|
strongprotected |
|
inline |
Initializes a new instance of the TcpTests class.
|
inlinestaticprotected |
The check default event params.
eventArgs | The event args. |
eventEventCode | The event code. |
actorNumber | The actor number. |
|
inlinestaticprotected |
The check default event params.
eventArgs | The event args. |
operationCode | The operation code. |
actorNumber | The actor number. |
|
inlinestaticprotected |
The check default operation params.
response | The response. |
operationCode | The operation code. |
|
inlinestaticprotected |
The check event param.
eventArgs | The event args. |
key | The key. |
expectedValue | The expected value. |
|
inlinestaticprotected |
The check event param.
eventArgs | The event args. |
paramKey | The param key. |
expectedValue | The expected value. |
|
inlinestaticprotected |
The check event param exists.
eventArgs | The event args. |
key | The key. |
|
inlinestaticprotected |
The check event param exists.
eventArgs | The event args. |
paramKey | The param key. |
|
inlinestaticprotected |
The check join event.
eventArgs | The event args. |
actorNumber | The actor number. |
|
inlinestaticprotected |
The check join event.
eventArgs | The event args. |
actorNumber | The actor number. |
expectedActorProperties | The expected actor properties. |
|
inlinestaticprotected |
The check join response.
operationResponse | The operation response. |
expectedActorNumber | The expected actor number. |
|
inlinestaticprotected |
The check param.
response | The response. |
paramKey | The param key. |
expectedValue | The expected value. |
|
inlinestaticprotected |
The check param exists.
response | The response. |
paramKey | The param key. |
|
inlinestaticprotected |
Converts a hex string to an byte array.
hexString | The hex string. |
delimiter | The delimiter between the hex values. |
|
inlinestaticprotected |
The create join request.
roomName | The room name. |
properties | The properties. |
broadcastProperties | The broadcast properties. |
|
inlinestaticprotected |
The create random room name.
|
inlineprotectedvirtual |
The get actor number key.
actorNumber | The actor number. |
|
inlineprotectedvirtual |
The init client.
|
inline |
The join.
|
inlineprotected |
The join clients to room.
roomName | The room name. |
client1 | The client 1. |
client2 | The client 2. |
|
inlineprotected |
The join clients to room.
roomName | The room name. |
client1 | The client 1. |
client2 | The client 2. |
clientProperties1 | The client properties 1. |
clientProperties2 | The client properties 2. |
broadcastClientProperties | The broadcast client properties. |
|
inline |
The join with channel.
|
inlinevirtual |
The join with properties int.
|
inline |
The join with properties string.
|
inline |
The join with property broadcast.
|
inlineprotected |
The leave clients from room.
client1 | The client 1. |
client2 | The client 2. |
|
inlineprotected |
The log elapsed time.
logger | The logger. |
prefix | The prefix. |
elapsedTime | The elapsed time. |
numItems | The num items. |
|
inline |
The send custom event.
|
inline |
Sends a custom event to a list of actors.
|
inlinevirtual |
The send custom event with large data.
|
inline |
The send ping.
|
inlinevirtual |
The set properties with broadcast.
|
inlinevirtual |
The set properties with broadcast v 15.
|
getsetprotected |
Gets or sets WaitTime.