private void Loop(string eventName) { int i = 0; while (true) { gSClient.SendCommand(builder => GSCommandBuilder.New.Event.Fire(eventName, i)); Thread.Sleep(sleep); i++; if (i == 101) { i = 0; } } }
public void DisplayEvent() { Assert.IsTrue(_client.SendCommand(builder => builder.Program.Register(_developerName, _displayName))); Assert.IsTrue(_client.SendCommand(builder => builder.Event.Register(_eventName))); int value = 0; for (int i = 0; i < 200; i++) { Assert.IsTrue(_client.SendCommand(builder => builder.Event.Fire(_eventName, value))); Thread.Sleep(10); value++; if (value == 101) { value = 0; } } }