public void TooShortInput9() { //arrange string inputF = "5168497323076050008097000651350609074725910069683700502531860746842075007910506"; string inputT = "000013000000680002006000000200470005400008000005060030000305026003000801000000400"; bool isInLengthF, isInLengthT, expectedF = false, expectedT = true; //act isInLengthF = Validity.IsValid(inputF); isInLengthT = Validity.IsValid(inputT); //assert Assert.AreEqual(expectedF, isInLengthF); Assert.AreEqual(expectedT, isInLengthT); }
public void TooShortInput16() { //arrange string inputF = "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"; 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 isInLengthF, isInLengthT, expectedF = false, expectedT = true; //act isInLengthF = Validity.IsValid(inputF); isInLengthT = Validity.IsValid(inputT); //assert Assert.AreEqual(expectedF, isInLengthF); Assert.AreEqual(expectedT, isInLengthT); }
public void TooShortInput4() { //arrange string inputF = "001030000300000"; string inputT = "0010300003000002"; bool isInLengthF, isInLengthT, expectedF = false, expectedT = true; //act isInLengthF = Validity.IsValid(inputF); isInLengthT = Validity.IsValid(inputT); //assert Assert.AreEqual(expectedF, isInLengthF); Assert.AreEqual(expectedT, isInLengthT); }