/// <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; }
/// <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); }