コード例 #1
0
        public void ToZpl_X10Y10_Successful()
        {
            var command    = new FieldTypesetCommand(10, 10);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^FT10,10", zplCommand);
        }
コード例 #2
0
        public void IsCommandParsable_InvalidCommand_False()
        {
            var command    = new FieldTypesetCommand();
            var isParsable = command.IsCommandParsable("^FO10,10");

            Assert.IsFalse(isParsable);
        }
コード例 #3
0
        public void IsCommandParsable_ValidCommand_True()
        {
            var command    = new FieldTypesetCommand();
            var isParsable = command.IsCommandParsable("^FT10,10");

            Assert.IsTrue(isParsable);
        }
コード例 #4
0
        public void ToZpl_XnullYnull_Successful()
        {
            var command    = new FieldTypesetCommand(null, null);
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^FT0,0", zplCommand);
        }
コード例 #5
0
        public void ParseCommand_ValidCommandXisEmpty_Successful()
        {
            var command = new FieldTypesetCommand();

            command.ParseCommand("^FT,10");
            Assert.AreEqual(0, command.X);
            Assert.AreEqual(10, command.Y);
        }
コード例 #6
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new FieldTypesetCommand();

            command.ParseCommand("^FT0,20");
            Assert.AreEqual(0, command.X);
            Assert.AreEqual(20, command.Y);
        }