ClientTests ConnectToServer Method Delta Engine Documentation

Namespace: DeltaEngine.Networking.Tests
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ConnectToServer()
Examples

[Test]
public void ConnectToServer()
{
    var server = new MockServer();
    using (var client = new MockClient(server))
    {
        client.Connect("localhost", 1);
        Assert.IsTrue(client.IsConnected);
    }
}
See Also