mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Tests - Add Artemis.Core and profile editor test suites (#907)
This commit is contained in:
1 parent
6e7fae16d2
commit
504845c7d2
168 files changed
+22914
-7
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Artemis.Core.Services;
|
||||
|
||||
namespace Artemis.Core.Tests.Infrastructure.Services;
|
||||
|
||||
/// <summary>
|
||||
/// An input provider the test presses keys on, the real providers hook into the operating system
|
||||
/// </summary>
|
||||
public class TestInputProvider : InputProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Presses and releases the key
|
||||
/// </summary>
|
||||
public void Press(KeyboardKey key)
|
||||
{
|
||||
OnKeyboardDataReceived(null, key, true);
|
||||
OnKeyboardDataReceived(null, key, false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user