Incorporated tznind's stuff

This commit is contained in:
Tig
2024-12-09 16:53:58 -08:00
parent d15b3021d1
commit 23344baca7
9 changed files with 191 additions and 182 deletions

View File

@@ -27,13 +27,13 @@ public class KeyBindingsTests ()
Assert.Contains (Command.Left, resultCommands);
}
[Fact]
public void Add_Invalid_Key_Throws ()
{
var keyBindings = new KeyBindings (new View ());
List<Command> commands = new ();
Assert.Throws<ArgumentException> (() => keyBindings.Add (Key.Empty, Command.Accept));
}
//[Fact]
//public void Add_Invalid_Key_Throws ()
//{
// var keyBindings = new KeyBindings (new View ());
// List<Command> commands = new ();
// Assert.Throws<ArgumentException> (() => keyBindings.Add (Key.Empty, Command.Accept));
//}
[Fact]
public void Add_Multiple_Commands_Adds ()