Example #1
0
        public void FormatHotkey_LowerCaseHotkey_MakesUpperCase()
        {
            var formatter      = new TestableHotkeyFormatterBase();
            var textWithHotkey = new TextWithHotkey("text", 'a');

            Assert.That(formatter.FormatHotkey(textWithHotkey), Is.EqualTo("A"));
        }
Example #2
0
        public void FormatHotkey_NoHotkey()
        {
            var formatter      = new TestableHotkeyFormatterBase();
            var textWithHotkey = new TextWithHotkey("text", null);

            Assert.That(formatter.FormatHotkey(textWithHotkey), Is.Null);
        }