public void TestTracksKeyPressesByUser() { _input.SetUserId(1); _input.SetUserId(2); _input.KeyDown(Keys.Enter); Assert.True(_input.IsKeyDown(Keys.Enter)); Assert.False(_input.IsUserKeyDown(1, Keys.Enter)); }
public void Put(Keys key) { ClientFormInput input = new ClientFormInput(); input.SetUserId(1); input.Initialize(1); input.KeyDown(key); var result = input.IsUserKeyDown(1, key); Assert.True(result); }