Cleaned up Command enum.

This commit is contained in:
Tig
2024-09-11 08:41:58 -06:00
parent 011f208c5e
commit ba161b3eae
31 changed files with 376 additions and 359 deletions

View File

@@ -165,7 +165,7 @@ public class KeyBindingTests
Command [] commands1 = { Command.Right, Command.Left };
keyBindings.Add (Key.A, KeyBindingScope.Application, commands1);
Command [] commands2 = { Command.LineUp, Command.LineDown };
Command [] commands2 = { Command.Up, Command.Down };
keyBindings.Add (Key.B, KeyBindingScope.Application, commands2);
Key key = keyBindings.GetKeyFromCommands (commands1);
@@ -175,7 +175,7 @@ public class KeyBindingTests
Assert.Equal (Key.B, key);
// Negative case
Assert.Throws<InvalidOperationException> (() => key = keyBindings.GetKeyFromCommands (Command.EndOfLine));
Assert.Throws<InvalidOperationException> (() => key = keyBindings.GetKeyFromCommands (Command.RightEnd));
}
[Fact]