Esempio n. 1
0
        public void CharacterDecription_NonKeyboardChar()
        {
            int    n            = 129;
            char   ch           = (char)n;
            string actualOutput = ch.CharacterDecription();

            Assert.AreEqual("(UNICODE codepoint 129)", actualOutput);
        }
Esempio n. 2
0
        public void CharacterDecription_NonKeyboardAsciiChar()
        {
            int    n            = 2;
            char   ch           = (char)n;
            string actualOutput = ch.CharacterDecription();

            Assert.AreEqual("(ASCII control-code 2)", actualOutput);
        }
Esempio n. 3
0
        public void CharacterDecription_MyriadArgs(char ch, string expectedName)
        {
            string actualOutput = ch.CharacterDecription();

            Assert.AreEqual(expectedName, actualOutput);
        }