コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }