Пример #1
0
        public void ParseCommand_ValidCommand3_Successful()
        {
            var command = new ScalableBitmappedFontCommand();

            command.ParseCommand("^A0N");
            Assert.AreEqual('0', command.FontName);
            Assert.AreEqual(Orientation.Normal, command.Orientation);
        }
Пример #2
0
        public void ParseCommand_ValidCommand9_Successful()
        {
            var command = new ScalableBitmappedFontCommand();

            command.ParseCommand("^A0I,100,50");
            Assert.AreEqual('0', command.FontName);
            Assert.AreEqual(Orientation.Rotated180, command.Orientation);
            Assert.AreEqual(100, command.CharacterHeight);
            Assert.AreEqual(50, command.Width);
        }
Пример #3
0
        public void ParseCommand_InvalidFieldOrientationCommand_Successful()
        {
            var command = new ScalableBitmappedFontCommand();

            command.ParseCommand("^A0X");
            Assert.AreEqual('0', command.FontName);
            Assert.AreEqual(Orientation.Normal, command.Orientation);
            Assert.IsNull(command.CharacterHeight);
            Assert.IsNull(command.Width);
        }