Ejemplo n.º 1
0
        public void IsValidChars9()
        {
            //arrange
            string inputF = "09010700001009004500320000h300000060062000300005000009000602000000000000049000057";
            string inputT = "090107000010090045003200000300000060062000300005000009000602000000000000049000057";
            bool   isCorrectCharsF, isCorrectCharsT, expectedF = false, expectedT = true;

            //act
            isCorrectCharsF = Validity.IsValidInput(inputF);
            isCorrectCharsT = Validity.IsValidInput(inputT);

            //assert
            Assert.AreEqual(isCorrectCharsF, expectedF);
            Assert.AreEqual(isCorrectCharsT, expectedT);
        }
Ejemplo n.º 2
0
        public void IsValidChars16()
        {
            //arrange
            string inputF = "10023400<06000700080007003k09:6;0<00:0010=0;00>0300?200>000900<0=000800:0<201?000;76000@000?005=000:05?0040800;0@0059<00100000800200000=00<580030=00?0300>80@000580010002000=9?000<406@0=00700050300<0006004;00@0700@050>0010020;1?900=002000>000>000;0200=3500<";
            string inputT = "10023400<06000700080007003009:6;0<00:0010=0;00>0300?200>000900<0=000800:0<201?000;76000@000?005=000:05?0040800;0@0059<00100000800200000=00<580030=00?0300>80@000580010002000=9?000<406@0=00700050300<0006004;00@0700@050>0010020;1?900=002000>000>000;0200=3500<";
            bool   isCorrectCharsF, isCorrectCharsT, expectedF = false, expectedT = true;

            //act
            isCorrectCharsF = Validity.IsValidInput(inputF);
            isCorrectCharsT = Validity.IsValidInput(inputT);

            //assert
            Assert.AreEqual(isCorrectCharsF, expectedF);
            Assert.AreEqual(isCorrectCharsT, expectedT);
        }
Ejemplo n.º 3
0
        public void IsValidChars4()
        {
            //arrange
            string inputF = "12341234h1231234";
            string inputT = "0010300003000002";
            bool   isCorrectCharsF, isCorrectCharsT, expectedF = false, expectedT = true;

            //act
            isCorrectCharsF = Validity.IsValidInput(inputF);
            isCorrectCharsT = Validity.IsValidInput(inputT);

            //assert
            Assert.AreEqual(isCorrectCharsF, expectedF);
            Assert.AreEqual(isCorrectCharsT, expectedT);
        }