public void ToZpl_X10Y10_Successful() { var command = new FieldTypesetCommand(10, 10); var zplCommand = command.ToZpl(); Assert.AreEqual("^FT10,10", zplCommand); }
public void IsCommandParsable_InvalidCommand_False() { var command = new FieldTypesetCommand(); var isParsable = command.IsCommandParsable("^FO10,10"); Assert.IsFalse(isParsable); }
public void IsCommandParsable_ValidCommand_True() { var command = new FieldTypesetCommand(); var isParsable = command.IsCommandParsable("^FT10,10"); Assert.IsTrue(isParsable); }
public void ToZpl_XnullYnull_Successful() { var command = new FieldTypesetCommand(null, null); var zplCommand = command.ToZpl(); Assert.AreEqual("^FT0,0", zplCommand); }
public void ParseCommand_ValidCommandXisEmpty_Successful() { var command = new FieldTypesetCommand(); command.ParseCommand("^FT,10"); Assert.AreEqual(0, command.X); Assert.AreEqual(10, command.Y); }
public void ParseCommand_ValidCommand2_Successful() { var command = new FieldTypesetCommand(); command.ParseCommand("^FT0,20"); Assert.AreEqual(0, command.X); Assert.AreEqual(20, command.Y); }