public void LogTest(UnitTestEvent eventType, int value) { TestEvent e = new TestEvent() { Event = eventType, Time = Time.realtimeSinceStartup, Value = value }; switch (eventType) { case UnitTestEvent.Click: case UnitTestEvent.Cancel: case UnitTestEvent.Swipe: e.Position = Mouse.current.position.ReadValue(); break; } CurrentTest.EventList.Add(e); }
public void LogTest(UnitTestEvent eventType, long value) { LogTest(eventType, value, string.Empty); }
public void LogTest(UnitTestEvent eventType, string value) { LogTest(eventType, 0, value); }