Exemplo n.º 1
0
        public void TestStartNumberSettingErrorFormat()
        {
            Dispenser dispenser            = FormatParser.Parse(_testSerailNumberFormatString);
            var       expectedSerialNumber = "TEST20180517-Y39";

            dispenser.SetStartNumber(expectedSerialNumber);
        }
Exemplo n.º 2
0
        public void TestStartNumberSetting()
        {
            Dispenser dispenser            = FormatParser.Parse(_testSerailNumberFormatString);
            var       expectedSerialNumber = "TEST20180517-乙Y39";

            dispenser.SetStartNumber(expectedSerialNumber);

            var startSerialNumber = dispenser.First();

            Assert.AreEqual(expectedSerialNumber, startSerialNumber);

            var sencondSerialNumber = dispenser.Skip(1).First();

            Assert.AreEqual("TEST20180517-乙Y40", sencondSerialNumber);
        }