Photon Server API
Public Member Functions | Static Protected Member Functions | List of all members
Photon.Hive.Tests.Disconnected.BasicUseCases Class Reference

The basic use cases. More...

Public Member Functions

virtual void Setup ()
 
void TestCleanUp ()
 
void BiggerThenMaxEmptyRoomLiveTimeTest ()
 
void JoinGameFailsIfGameNotExists ()
 
void JoinGameOldCreateIfNoExists ()
 
void JoinGameOldRejoin ()
 
void CreateOrJoinGameWithExpectedPlugin ()
 
void CreateGameWithErrorPlugin ()
 
void JoinGameNewCreateIfNoExists ()
 
void JoinGameNewRejoin ()
 
void CreateGame ()
 
void ReinitGameTest ()
 
void StopCloseGameIfThereIsActiveTest ()
 
void GetSetGameState ()
 The join, connection loss, rejoin plus saving and restoring game state More...
 
void GetSetNewGameState ()
 
void GameStateCompatibilityTest ()
 
void GameStateUpdateWellKnownProperties ()
 
void JoinCheckUserIds ()
 
void JoinCheckUserIds_Default_No_Check ()
 for backwards compatibility More...
 
void JoinCheckUserIds_FailOnMatch ()
 recommended to be used with saved games More...
 
void CreateGame_WrongPropertyType ()
 
void CreateGame_AllowToCreateClosedGame ()
 for backwards compatibility More...
 
void JoinAndJoin ()
 The join and leave. More...
 
void JoinAndLeave ()
 The join and leave. More...
 
void JoinDisconnectRejoin ()
 Expected flow: More...
 
void JoinDisconnectRejoinWithGroups ()
 
void LessThenMaxEmptyRoomLiveTimeTest ()
 
void RaiseEventActors ()
 Test for sending event to target actor numbers. More...
 
void RaiseEventCacheMerge ()
 Tests if existing and new peer receive cached events. More...
 
void RaiseEventCacheMerge2 ()
 Tests if events are deleted when there is no content. More...
 
void RaiseEventCacheRemove ()
 Tests if events are removed. More...
 
void RaiseEventCacheReplace ()
 Tests if events are replaced. More...
 
void RaiseEventCacheRoom ()
 Tests if existing and new peer receive cached events. More...
 
void RaiseEventCacheRoomSlices ()
 Tests if existing and new peer receive cached events. More...
 
void RaiseEventReceiverGroups ()
 Test for sending events to receiver groups. More...
 
void HandleWebRpcOpTest ()
 Test for sending web rpc request More...
 
void MasterClientIdTests ()
 Expected flow: More...
 
void MasterClientEventTests ()
 
void SetPropertieCASTest ()
 
void SetPropertieCASExpectedKeyDoNotExistTest ()
 
void SetProperties_WrongPropertyType ()
 
void PluginTestCreateJoinRaiseEventLeaveCloseGame ()
 
void PluginTestCreateJoinRaiseEventDisconnectCloseGame ()
 
void PluginTestCreateJoinRaiseEventDisconnectLeaveCloseGame ()
 
void PluginOnCreateForgotCallTest ()
 
void PluginOnBeforeCloseForgotCallTest ()
 
void PluginOnCloseForgotCallTest ()
 
void BeforeCloseGameExceptionInContinueTest ()
 
void BeforeCloseGameExceptionTest ()
 
void OnCloseGameExceptionInContinueTest ()
 
void OnCloseGameExceptionTest ()
 
void BeforeAndOnCloseGameExceptionInContinueTest ()
 
void BeforeAndOnCloseGameExceptionTest ()
 
void CloseGameExceptionTestBody (string propertyValue)
 
void BanLeaveingPlayerTest ()
 

Static Protected Member Functions

static OperationRequest GetCreateGameRequest ()
 
static OperationRequest GetCreateGameRequest (Dictionary< byte, object > customParameter)
 
static OperationRequest GetJoinGameRequest ()
 
static OperationRequest GetJoinGameRequest (Dictionary< byte, object > customParameter)
 
static OperationRequest GetJoinRequest ()
 The get join request. More...
 
static OperationRequest GetJoinRequest (Dictionary< byte, object > customParameter)
 The get join request. More...
 
static OperationRequest GetLeaveRequest ()
 The get leave request. More...
 
static OperationRequest GetRaiseEventRequest (byte eventCode, object data, byte?cache, ReceiverGroup?receiverGroup, int[] targetActors, byte?group=null)
 Creates a RaiseEvent request. More...
 
static OperationRequest GetRaiseEventRequest (object data, byte?cache)
 
static OperationRequest GetChangeGroups (byte[] groupsToAdd, byte[] groupsToRemove)
 
static OperationRequest GetSetGamePropertiesRequest (Hashtable properties, Hashtable expectedValues=null)
 

Detailed Description

The basic use cases.

Member Function Documentation

void Photon.Hive.Tests.Disconnected.BasicUseCases.BanLeaveingPlayerTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.BeforeAndOnCloseGameExceptionInContinueTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.BeforeAndOnCloseGameExceptionTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.BeforeCloseGameExceptionInContinueTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.BeforeCloseGameExceptionTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.BiggerThenMaxEmptyRoomLiveTimeTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.CloseGameExceptionTestBody ( string  propertyValue)
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.CreateGame ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.CreateGame_AllowToCreateClosedGame ( )
inline

for backwards compatibility

void Photon.Hive.Tests.Disconnected.BasicUseCases.CreateGame_WrongPropertyType ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.CreateGameWithErrorPlugin ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.CreateOrJoinGameWithExpectedPlugin ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.GameStateCompatibilityTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.GameStateUpdateWellKnownProperties ( )
inline
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetChangeGroups ( byte[]  groupsToAdd,
byte[]  groupsToRemove 
)
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetCreateGameRequest ( )
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetCreateGameRequest ( Dictionary< byte, object >  customParameter)
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetJoinGameRequest ( )
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetJoinGameRequest ( Dictionary< byte, object >  customParameter)
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetJoinRequest ( )
inlinestaticprotected

The get join request.

Returns
a join request
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetJoinRequest ( Dictionary< byte, object >  customParameter)
inlinestaticprotected

The get join request.

Returns
a join request
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetLeaveRequest ( )
inlinestaticprotected

The get leave request.

Returns
a leave request
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetRaiseEventRequest ( byte  eventCode,
object  data,
byte?  cache,
ReceiverGroup receiverGroup,
int[]  targetActors,
byte?  group = null 
)
inlinestaticprotected

Creates a RaiseEvent request.

Parameters
eventCodeThe event code.
dataThe data.
cacheThe cache.
receiverGroupThe receiver group.
targetActorsThe target actors.
group
Returns
An OperationRequest.
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetRaiseEventRequest ( object  data,
byte?  cache 
)
inlinestaticprotected
static OperationRequest Photon.Hive.Tests.Disconnected.BasicUseCases.GetSetGamePropertiesRequest ( Hashtable  properties,
Hashtable  expectedValues = null 
)
inlinestaticprotected
void Photon.Hive.Tests.Disconnected.BasicUseCases.GetSetGameState ( )
inline

The join, connection loss, rejoin plus saving and restoring game state

void Photon.Hive.Tests.Disconnected.BasicUseCases.GetSetNewGameState ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.HandleWebRpcOpTest ( )
inline

Test for sending web rpc request

void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinAndJoin ( )
inline

The join and leave.

void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinAndLeave ( )
inline

The join and leave.

void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinCheckUserIds ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinCheckUserIds_Default_No_Check ( )
inline

for backwards compatibility

void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinCheckUserIds_FailOnMatch ( )
inline

recommended to be used with saved games

void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinDisconnectRejoin ( )
inline

Expected flow:

  • #PeersCount peers join a game
  • check all peers recieve response and join events
  • peer#3 disconnects
  • wait for game to remove peer
  • check other peers recieved disconnect event
  • peer#3 rejoins
  • verify game disposed cleanup timer TBD check other peers revieved join event
  • peer#3 disconnects
  • wait for game to remove peer
  • check other peers recieved disconnect event
  • wait for game to ceanup actor
  • check other peers recieved leave event
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinDisconnectRejoinWithGroups ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinGameFailsIfGameNotExists ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinGameNewCreateIfNoExists ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinGameNewRejoin ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinGameOldCreateIfNoExists ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.JoinGameOldRejoin ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.LessThenMaxEmptyRoomLiveTimeTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.MasterClientEventTests ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.MasterClientIdTests ( )
inline

Expected flow:

  • #PeersCount peers join a game
  • check all peers recieve response and join events
  • check that master client id is 1
  • peer#0 disconnects
  • wait for game to remove peer
  • check that master client id is 2
  • check other peers recieved disconnect event
  • peer#0 rejoins
  • check that master client id is 1 again
void Photon.Hive.Tests.Disconnected.BasicUseCases.OnCloseGameExceptionInContinueTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.OnCloseGameExceptionTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginOnBeforeCloseForgotCallTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginOnCloseForgotCallTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginOnCreateForgotCallTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginTestCreateJoinRaiseEventDisconnectCloseGame ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginTestCreateJoinRaiseEventDisconnectLeaveCloseGame ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.PluginTestCreateJoinRaiseEventLeaveCloseGame ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventActors ( )
inline

Test for sending event to target actor numbers.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheMerge ( )
inline

Tests if existing and new peer receive cached events.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheMerge2 ( )
inline

Tests if events are deleted when there is no content.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheRemove ( )
inline

Tests if events are removed.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheReplace ( )
inline

Tests if events are replaced.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheRoom ( )
inline

Tests if existing and new peer receive cached events.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventCacheRoomSlices ( )
inline

Tests if existing and new peer receive cached events.

void Photon.Hive.Tests.Disconnected.BasicUseCases.RaiseEventReceiverGroups ( )
inline

Test for sending events to receiver groups.

void Photon.Hive.Tests.Disconnected.BasicUseCases.ReinitGameTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.SetPropertieCASExpectedKeyDoNotExistTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.SetPropertieCASTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.SetProperties_WrongPropertyType ( )
inline
virtual void Photon.Hive.Tests.Disconnected.BasicUseCases.Setup ( )
inlinevirtual
void Photon.Hive.Tests.Disconnected.BasicUseCases.StopCloseGameIfThereIsActiveTest ( )
inline
void Photon.Hive.Tests.Disconnected.BasicUseCases.TestCleanUp ( )
inline