public void ToZpl_DefaulValues1_Successful() { var command = new GraphicCircleCommand(10); var zplCommand = command.ToZpl(); Assert.AreEqual("^GC10,1,B", zplCommand); }
public void IsCommandParsable_InvalidCommand_False() { var command = new GraphicCircleCommand(); var isParsable = command.IsCommandParsable("^FT10,10"); Assert.IsFalse(isParsable); }
public void ToZpl_DefaulValues5_Successful() { var command = new GraphicCircleCommand(null, null, LineColor.White); var zplCommand = command.ToZpl(); Assert.AreEqual("^GC3,1,W", zplCommand); }
public void ParseCommand_ValidCommand1_Successful() { var command = new GraphicCircleCommand(); command.ParseCommand("^GC10,5"); Assert.AreEqual(10, command.CircleDiameter); Assert.AreEqual(5, command.BorderThickness); }
public void ParseCommand_ValidCommand3_Successful() { var command = new GraphicCircleCommand(); command.ParseCommand("^GC,,W"); Assert.AreEqual(3, command.CircleDiameter); Assert.AreEqual(1, command.BorderThickness); Assert.AreEqual(LineColor.White, command.LineColor); }