Ejemplo n.º 1
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new Code39BarCodeCommand();

            command.ParseCommand("^B3N,N,,Y,Y");
            Assert.AreEqual(Orientation.Normal, command.Orientation);
            Assert.IsFalse(command.Mod43CheckDigit);
            Assert.IsNull(command.BarCodeHeight);
            Assert.IsTrue(command.PrintInterpretationLine);
            Assert.IsTrue(command.PrintInterpretationLineAboveCode);
        }
Ejemplo n.º 2
0
        public void ParseCommand_ValidCommand5_Successful()
        {
            var command = new Code39BarCodeCommand();

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