Beispiel #1
0
        public void StripEndGuardsSucceeds()
        {
            string barcode  = "1010101101";
            string expected = "0101";

            Assert.AreEqual(expected, BarcodeProgram.StripEndGuards(barcode));
        }
Beispiel #2
0
        public void StripEndGuardsFails()
        {
            string barcode = "101010110";

            Assert.That(
                () => BarcodeProgram.StripEndGuards(barcode),
                Throws.Exception.TypeOf <FormatException>());
        }