Ejemplo n.º 1
0
        public void ToZpl_Default_Successful()
        {
            var command    = new FieldDataCommand();
            var zplCommand = command.ToZpl();

            Assert.AreEqual("^FD", zplCommand);
        }
Ejemplo n.º 2
0
        public void ParseCommand_ValidCommand2_Successful()
        {
            var command = new FieldDataCommand();

            command.ParseCommand("^FDtest");
            Assert.AreEqual("test", command.Data);
        }
Ejemplo n.º 3
0
        public void IsCommandParsable_InvalidCommand_False()
        {
            var command    = new FieldDataCommand();
            var isParsable = command.IsCommandParsable("^FT10,10");

            Assert.IsFalse(isParsable);
        }
Ejemplo n.º 4
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new FieldDataCommand();

            command.ParseCommand("^FD");
            Assert.AreEqual(string.Empty, command.Data);
        }
Ejemplo n.º 5
0
        public void IsCommandParsable_ValidCommand_True()
        {
            var command    = new FieldDataCommand();
            var isParsable = command.IsCommandParsable("^FDTest");

            Assert.IsTrue(isParsable);
        }