예제 #1
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;
 }
예제 #2
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);
 }
예제 #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);
 }
예제 #4
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;
 }