public void GetPrintDataTest3()
        {
            ZebraZplII target = new ZebraZplII();

            BarCodeType barCodeType = BarCodeType.TestOnlyDoNotUse;

            target.BarCodeType = barCodeType;

            List <string> descriptiveTextLines = new List <string>();

            descriptiveTextLines.Add("aaaaa");
            descriptiveTextLines.Add("bbbbb");
            descriptiveTextLines.Add("ccccc");
            target.DescriptiveTextLines = descriptiveTextLines;

            string barCodeText = "123456";
            string actual;

            bool exceptionThrown = false;

            try
            {
                actual = target.GetPrintData(barCodeText);
            }
            catch (ArgumentException)
            {
                exceptionThrown = true;
            }

            Assert.IsTrue(exceptionThrown, "ArgumentException was not thrown as expected for bad BarCodeType");
        }
        public void GetPrintDataTest()
        {
            ZebraZplII target   = new ZebraZplII();
            string     expected = string.Empty;
            string     actual;

            actual = target.GetPrintData();

            Assert.Inconclusive("GetPrintData()\n{0}", actual);
        }
        public void GetTestToFile()
        {
            const string OutputFile = "GetTestToFile.txt";

            StreamWriter sw = new StreamWriter(OutputFile);

            sw.AutoFlush = true;

            ZebraZplII target = new ZebraZplII();

            target.BarCodeType = BarCodeType.Code128;

            List <string> descriptiveTextLines = new List <string>();

            descriptiveTextLines.Add("Overview Tag 100");
            descriptiveTextLines.Add("http://overview.logikos.com");
            descriptiveTextLines.Add("Contains FCC ID: W7Z-ICP0");

            target.DescriptiveTextLines = descriptiveTextLines;

            string[] testCode =
            {
                "FE0007",
                "123456",
                "AAAAAA",
                "000000",
                "Toooo long"
            };

            string actual;

            foreach (string c in testCode)
            {
                actual = target.GetPrintData(c);
                sw.Write(actual);
            }

            sw.Close();

            Assert.Inconclusive("GetPrintData() Inspect output in " + OutputFile);
        }
        public void GetPrintDataTest1()
        {
            ZebraZplII  target      = new ZebraZplII();
            BarCodeType barCodeType = BarCodeType.Code128;

            List <string> descriptiveTextLines = new List <string>();

            descriptiveTextLines.Add("aaaaa");
            descriptiveTextLines.Add("bbbbb");
            descriptiveTextLines.Add("ccccc");

            string barCodeText = "123456";
            string actual;

            actual = target.GetPrintData(barCodeType, descriptiveTextLines, barCodeText);


            Assert.Inconclusive(
                "GetPrintData({0}, {1}, {2})\n{3}",
                barCodeType, descriptiveTextLines, barCodeText, actual);
        }