public void ToZpl_Default1_Successful()
        {
            var command    = new BarCodeFieldDefaultCommand(2, 3.0, 10);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^BY2,3.0,10", zplCommand);
        }
        public void IsCommandParsable_InvalidCommand_False()
        {
            var command    = new BarCodeFieldDefaultCommand();
            var isParsable = command.IsCommandParsable("^FT10,10");

            Assert.IsFalse(isParsable);
        }
        public void IsCommandParsable_ValidCommand_True()
        {
            var command    = new BarCodeFieldDefaultCommand();
            var isParsable = command.IsCommandParsable("^BY2,2.9,10");

            Assert.IsTrue(isParsable);
        }
        public void ParseCommand_ValidCommandXisEmpty_Successful()
        {
            var command = new BarCodeFieldDefaultCommand();

            command.ParseCommand("^BY2,2.9,100");
            Assert.AreEqual(2, command.ModuleWidth);
            Assert.AreEqual(2.9, command.WideBarToNarrowBarWidthRatio);
            Assert.AreEqual(100, command.BarCodeHeight);
        }
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new BarCodeFieldDefaultCommand();

            command.ParseCommand("^BY5,2.0,50");
            Assert.AreEqual(5, command.ModuleWidth);
            Assert.AreEqual(2.0, command.WideBarToNarrowBarWidthRatio);
            Assert.AreEqual(50, command.BarCodeHeight);
        }