/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="target">target object</param>
 /// <param name="data">data to send to the terminal</param>
 /// <param name="repeat">repeat count to send data</param>
 public DataLoadBenchmark(ICommandTarget target, byte[] data, int repeat)
     : base(target) {
     _data = data;
     _repeat = repeat;
     _socket = new MockSocket();
     _connection = new MockTerminalConnection("xterm", _socket);
 }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="target">target object</param>
 /// <param name="pattern">benchmark pattern</param>
 public XTermBenchmark(ICommandTarget target, XTermBenchmarkPattern pattern)
     : base(target)
 {
     _socket     = new MockSocket();
     _connection = new MockTerminalConnection("xterm", _socket);
     _pattern    = pattern;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="target">target object</param>
 /// <param name="data">data to send to the terminal</param>
 /// <param name="repeat">repeat count to send data</param>
 public DataLoadBenchmark(ICommandTarget target, byte[] data, int repeat)
     : base(target)
 {
     _data       = data;
     _repeat     = repeat;
     _socket     = new MockSocket();
     _connection = new MockTerminalConnection("xterm", _socket);
 }
Beispiel #4
0
 public MockTerminalConnection(string terminalType, MockSocket mockSocket)
 {
     _param = new TerminalParameter();
     _param.SetTerminalName(terminalType);
     _mockSocket = mockSocket;
 }
 public MockTerminalConnection(string terminalType, MockSocket mockSocket) {
     _param = new TerminalParameter();
     _param.SetTerminalName(terminalType);
     _mockSocket = mockSocket;
 }
Beispiel #6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="target">target object</param>
 /// <param name="pattern">benchmark pattern</param>
 public XTermBenchmark(ICommandTarget target, XTermBenchmarkPattern pattern)
     : base(target) {
     _socket = new MockSocket();
     _connection = new MockTerminalConnection("xterm", _socket);
     _pattern = pattern;
 }