mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServerTest: syntax
This commit is contained in:
parent
0d6b677660
commit
3a3a726059
@ -115,7 +115,7 @@ public void UpdateTransport()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void IsActiveTest()
|
||||
public void IsActive()
|
||||
{
|
||||
Assert.That(NetworkServer.active, Is.False);
|
||||
NetworkServer.Listen(1);
|
||||
@ -125,7 +125,7 @@ public void IsActiveTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MaxConnectionsTest()
|
||||
public void MaxConnections()
|
||||
{
|
||||
|
||||
// listen with maxconnections=1
|
||||
@ -142,7 +142,7 @@ public void MaxConnectionsTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ConnectMessageHandlerTest()
|
||||
public void ConnectMessageHandler()
|
||||
{
|
||||
// message handlers
|
||||
bool connectCalled = false;
|
||||
@ -158,7 +158,7 @@ public void ConnectMessageHandlerTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DisconnectMessageHandlerTest()
|
||||
public void DisconnectMessageHandler()
|
||||
{
|
||||
// message handlers
|
||||
bool disconnectCalled = false;
|
||||
@ -178,7 +178,7 @@ public void DisconnectMessageHandlerTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ConnectionsDictTest()
|
||||
public void ConnectionsDict()
|
||||
{
|
||||
|
||||
// listen
|
||||
@ -206,7 +206,7 @@ public void ConnectionsDictTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void OnConnectedOnlyAllowsNonZeroConnectionIdsTest()
|
||||
public void OnConnectedOnlyAllowsNonZeroConnectionIds()
|
||||
{
|
||||
// OnConnected should only allow connectionIds >= 0
|
||||
// 0 is for local player
|
||||
@ -230,7 +230,7 @@ public void OnConnectedOnlyAllowsNonZeroConnectionIdsTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ConnectDuplicateConnectionIdsTest()
|
||||
public void ConnectDuplicateConnectionIds()
|
||||
{
|
||||
|
||||
// listen
|
||||
@ -249,7 +249,7 @@ public void ConnectDuplicateConnectionIdsTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SetLocalConnectionTest()
|
||||
public void SetLocalConnection()
|
||||
{
|
||||
// listen
|
||||
NetworkServer.Listen(1);
|
||||
@ -269,7 +269,7 @@ public void SetLocalConnectionTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RemoveLocalConnectionTest()
|
||||
public void RemoveLocalConnection()
|
||||
{
|
||||
// listen
|
||||
NetworkServer.Listen(1);
|
||||
@ -289,7 +289,7 @@ public void RemoveLocalConnectionTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void LocalClientActiveTest()
|
||||
public void LocalClientActive()
|
||||
{
|
||||
// listen
|
||||
NetworkServer.Listen(1);
|
||||
@ -301,7 +301,7 @@ public void LocalClientActiveTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AddConnectionTest()
|
||||
public void AddConnection()
|
||||
{
|
||||
|
||||
// listen
|
||||
@ -338,7 +338,7 @@ public void AddConnectionTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RemoveConnectionTest()
|
||||
public void RemoveConnection()
|
||||
{
|
||||
|
||||
// listen
|
||||
@ -404,7 +404,7 @@ public void DisconnectAllTest_LocalConnection()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void OnDataReceivedTest()
|
||||
public void OnDataReceived()
|
||||
{
|
||||
|
||||
// add one custom message handler
|
||||
@ -446,7 +446,7 @@ public void OnDataReceivedTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void OnDataReceivedInvalidConnectionIdTest()
|
||||
public void OnDataReceivedInvalidConnectionId()
|
||||
{
|
||||
|
||||
// add one custom message handler
|
||||
@ -482,7 +482,7 @@ public void OnDataReceivedInvalidConnectionIdTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SetClientReadyAndNotReadyTest()
|
||||
public void SetClientReadyAndNotReady()
|
||||
{
|
||||
LocalConnectionToClient connection = new LocalConnectionToClient();
|
||||
connection.connectionToServer = new LocalConnectionToServer();
|
||||
@ -496,7 +496,7 @@ public void SetClientReadyAndNotReadyTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SetAllClientsNotReadyTest()
|
||||
public void SetAllClientsNotReady()
|
||||
{
|
||||
// add first ready client
|
||||
LocalConnectionToClient first = new LocalConnectionToClient();
|
||||
@ -517,7 +517,7 @@ public void SetAllClientsNotReadyTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ReadyMessageSetsClientReadyTest()
|
||||
public void ReadyMessageSetsClientReady()
|
||||
{
|
||||
// listen
|
||||
NetworkServer.Listen(1);
|
||||
@ -549,7 +549,7 @@ public void ReadyMessageSetsClientReadyTest()
|
||||
// this runs a command all the way:
|
||||
// byte[]->transport->server->identity->component
|
||||
[Test]
|
||||
public void CommandMessageCallsCommandTest()
|
||||
public void CommandMessageCallsCommand()
|
||||
{
|
||||
// listen
|
||||
NetworkServer.Listen(1);
|
||||
@ -686,7 +686,7 @@ public void ActivateHostSceneCallsOnStartClient()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SendToAllTest()
|
||||
public void SendToAll()
|
||||
{
|
||||
|
||||
// listen
|
||||
@ -718,7 +718,7 @@ public void SendToAllTest()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RegisterUnregisterClearHandlerTest()
|
||||
public void RegisterUnregisterClearHandler()
|
||||
{
|
||||
// RegisterHandler(conn, msg) variant
|
||||
int variant1Called = 0;
|
||||
@ -1017,7 +1017,7 @@ public void UnSpawn()
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ShutdownCleanupTest()
|
||||
public void ShutdownCleanup()
|
||||
{
|
||||
|
||||
// listen
|
||||
|
Loading…
Reference in New Issue
Block a user