public void ToZpl_Default1_Successful() { var command = new Code39BarCodeCommand(); var zplCommand = command.ToZpl(); Assert.AreEqual("^B3N,N,,Y,N", zplCommand); }
public void IsCommandParsable_InvalidCommand_False() { var command = new Code39BarCodeCommand(); var isParsable = command.IsCommandParsable("^FT10,10"); Assert.IsFalse(isParsable); }
public void IsCommandParsable_ValidCommand_True() { var command = new Code39BarCodeCommand(); var isParsable = command.IsCommandParsable("^B3N,N,,Y,N"); Assert.IsTrue(isParsable); }
public void ToZpl_Default4_Successful() { var command = new Code39BarCodeCommand(printInterpretationLine: false, printInterpretationLineAboveCode: false, mod43CheckDigit: true); var zplCommand = command.ToZpl(); Assert.AreEqual("^B3N,Y,,N,N", zplCommand); }
public void ToZpl_Default2_Successful() { var command = new Code39BarCodeCommand(Orientation.Rotated180); var zplCommand = command.ToZpl(); Assert.AreEqual("^B3I,N,,Y,N", zplCommand); }
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); }
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); }