Namespace: DeltaEngine.Networking
Assembly: DeltaEngine.Networking (in DeltaEngine.Networking.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Networking.Tests.ServerTests
2 unit tests call DeltaEngine.Networking.Server.NumberOfConnectedClients
Assembly: DeltaEngine.Networking (in DeltaEngine.Networking.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int32Remarks
Examples
[Test] public void InitiallyNoClients() { Assert.AreEqual(0, server.ListenPort); Assert.AreEqual(0, server.NumberOfConnectedClients); }
[Test] public void ConnectClient() { bool didClientConnect = false; server.ClientConnected += client => didClientConnect = true; CreateConnectedClient(); Assert.AreEqual(1, server.NumberOfConnectedClients); Assert.IsTrue(didClientConnect); }
See Also