Exemplo n.º 1
0
        public void ToZpl_DefaulValues1_Successful()
        {
            var command    = new GraphicCircleCommand(10);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^GC10,1,B", zplCommand);
        }
Exemplo n.º 2
0
        public void IsCommandParsable_InvalidCommand_False()
        {
            var command    = new GraphicCircleCommand();
            var isParsable = command.IsCommandParsable("^FT10,10");

            Assert.IsFalse(isParsable);
        }
Exemplo n.º 3
0
        public void ToZpl_DefaulValues5_Successful()
        {
            var command    = new GraphicCircleCommand(null, null, LineColor.White);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^GC3,1,W", zplCommand);
        }
Exemplo n.º 4
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new GraphicCircleCommand();

            command.ParseCommand("^GC10,5");
            Assert.AreEqual(10, command.CircleDiameter);
            Assert.AreEqual(5, command.BorderThickness);
        }
Exemplo n.º 5
0
        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);
        }