コード例 #1
0
 public void ToStringTest()
 {
     {
         var keyBinding = new KeyBinding(Fish.eigotest.Command.Action0, Keys.A, true, true, true);
         Assert.AreEqual("Shift+Ctrl+Alt+A", keyBinding.GetText());
     }
     {
         var keyBinding = new KeyBinding(Fish.eigotest.Command.Action0, Keys.A, false, true, true);
         Assert.AreEqual("Shift+Ctrl+A", keyBinding.GetText());
     }
     {
         var keyBinding = new KeyBinding(Fish.eigotest.Command.Action0, Keys.A, false, false, true);
         Assert.AreEqual("Shift+A", keyBinding.GetText());
     }
     {
         var keyBinding = new KeyBinding(Fish.eigotest.Command.Action0, Keys.A, false, false, false);
         Assert.AreEqual("A", keyBinding.GetText());
     }
 }