Exemple #1
0
        public void ToZpl_Default_Successful()
        {
            var command    = new FieldDataCommand();
            var zplCommand = command.ToZpl();

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

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

            Assert.IsFalse(isParsable);
        }
Exemple #4
0
        public void ParseCommand_ValidCommand1_Successful()
        {
            var command = new FieldDataCommand();

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

            Assert.IsTrue(isParsable);
        }