public void TestInputs() { using (var game = new GameTestingClient(Path, TestPlatform)) { game.Wait(TimeSpan.FromMilliseconds(2000)); game.TakeScreenshot(); game.KeyPress(Keys.Right, TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.KeyPress(Keys.Space, TimeSpan.FromMilliseconds(200)); game.TakeScreenshot(); game.Wait(TimeSpan.FromMilliseconds(500)); } }
public void TestInputs() { using (var game = new GameTestingClient(Path, TestPlatform)) { game.Wait(TimeSpan.FromMilliseconds(2000)); // X:0.8367187 Y:0.9375 // Constraints game.TakeScreenshot(); game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); // VolumeTrigger game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); // Raycasting game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.Tap(new Vector2(0.3304687f, 0.6055555f), TimeSpan.FromMilliseconds(200)); game.TakeScreenshot(); game.Tap(new Vector2(0.496875f, 0.4125f), TimeSpan.FromMilliseconds(200)); game.TakeScreenshot(); game.Tap(new Vector2(0.659375f, 0.5319445f), TimeSpan.FromMilliseconds(200)); game.TakeScreenshot(); game.KeyPress(Keys.Right, TimeSpan.FromMilliseconds(500)); game.Wait(TimeSpan.FromMilliseconds(500)); } }
public void TestInputs() { using (var game = new GameTestingClient(Path, TestPlatform)) { game.Wait(TimeSpan.FromMilliseconds(2000)); game.TakeScreenshot(); game.Tap(new Vector2(0.496875f, 0.8010563f), TimeSpan.FromMilliseconds(250)); game.Wait(TimeSpan.FromMilliseconds(1000)); game.TakeScreenshot(); game.KeyPress(Keys.Space, TimeSpan.FromMilliseconds(500)); game.Wait(TimeSpan.FromMilliseconds(500)); game.TakeScreenshot(); game.Wait(TimeSpan.FromMilliseconds(500)); } }