Beispiel #1
0
        public void ToZpl_Width10Height10_Successful()
        {
            var command    = new GraphicBoxCommand(10, 10);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^GB10,10,1,B,0", zplCommand);
        }
Beispiel #2
0
        public void IsCommandParsable_InvalidCommand_False()
        {
            var command    = new GraphicBoxCommand();
            var isParsable = command.IsCommandParsable("^FT10,10");

            Assert.IsFalse(isParsable);
        }
Beispiel #3
0
        public void IsCommandParsable_ValidCommand2_True()
        {
            var command    = new GraphicBoxCommand();
            var isParsable = command.IsCommandParsable("^GB10,10,1,W,1");

            Assert.IsTrue(isParsable);
        }
Beispiel #4
0
        public void ToZpl_WidthNullHeightNull_Successful()
        {
            var command    = new GraphicBoxCommand(null, null);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^GB1,1,1,B,0", zplCommand);
        }
Beispiel #5
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new GraphicBoxCommand();

            command.ParseCommand("^GB10,10");
            Assert.AreEqual(10, command.BoxWidth);
            Assert.AreEqual(10, command.BoxHeight);
        }
Beispiel #6
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new GraphicBoxCommand();

            command.ParseCommand("^GB10,10,2,W,1");
            Assert.AreEqual(10, command.BoxWidth);
            Assert.AreEqual(10, command.BoxHeight);
            Assert.AreEqual(2, command.BorderThickness);
            Assert.AreEqual(LineColor.White, command.LineColor);
            Assert.AreEqual(1, command.DegreeOfCornerrounding);
        }