Namespace: DeltaEngine.Networking.Tests
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void MessagesAreOnlyReceivedOnce() { serverSession.SendMessage("hello"); clientSession.SendMessage("hello"); Pause(); Assert.AreEqual(1, serverSession.GetMessages().Count); Assert.AreEqual(0, serverSession.GetMessages().Count); Assert.AreEqual(1, clientSession.GetMessages().Count); Assert.AreEqual(0, clientSession.GetMessages().Count); }
See Also