public void DisplayString_LocalizedKey_Success() { CustomKeyGesture.SupplyLocalization(KeyGestureLocalizations.ResourceManager); var g = CustomKeyGesture.Create(Key.Home, ModifierKeys.None); Assert.AreEqual(KeyGestureLocalizations.Key_Home, g.DisplayString); }
public void DisplayString_LocalizedModifiers_Success() { CustomKeyGesture.SupplyLocalization(KeyGestureLocalizations.ResourceManager); var g = CustomKeyGesture.Create(Key.A, ModifierKeys.Control | ModifierKeys.Shift); string expected = String.Format( "{0}+{1}+A", KeyGestureLocalizations.ModifierKeys_Control, KeyGestureLocalizations.ModifierKeys_Shift ); Assert.AreEqual(expected, g.DisplayString); }