MockClient ClassDelta Engine Documentation
Mock client used for unit testing networking when using a real client and server would be much too slow. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Networking.Mocks MockClient
    DeltaEngine.Networking.Mocks MockConnection

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

public class MockClient : Client, IDisposable

The MockClient type exposes the following members.

Constructors

  NameDescription
Public methodMockClient
Initializes a new instance of the MockClient class
Top
Methods

  NameDescription
Public methodConnect
Public methodDispose
Releases all resources used by the MockClient
Public methodSend
Top
Fields

  NameDescription
Protected fieldserver
Top
Properties

  NameDescription
Public propertyIsConnected
Public propertyLastReceivedMessage
Public propertyLastSentMessage
Public propertyTargetAddress
Public propertyUniqueID
Top
Events

  NameDescription
Public eventConnected
Public eventDataReceived
Public eventDataSent
Public eventDisconnected
Top
See Also