예제 #1
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new Code128BarCodeCommand();

            command.ParseCommand("^BCN,,Y,Y,Y");
            Assert.AreEqual(Orientation.Normal, command.Orientation);
            Assert.IsNull(command.BarCodeHeight);
            Assert.IsTrue(command.PrintInterpretationLine);
            Assert.IsTrue(command.PrintInterpretationLineAboveCode);
            Assert.IsTrue(command.UccCheckDigit);
        }
예제 #2
0
        public void ParseCommand_ValidCommand5_Successful()
        {
            var command = new Code128BarCodeCommand();

            command.ParseCommand("^BCB,55");
            Assert.AreEqual(Orientation.Rotated270, command.Orientation);
            Assert.AreEqual(55, command.BarCodeHeight);
            Assert.IsTrue(command.PrintInterpretationLine);
            Assert.IsFalse(command.PrintInterpretationLineAboveCode);
            Assert.IsFalse(command.UccCheckDigit);
        }