Exemple #1
0
        public void TestIncrementalDigitsRandomPin()
        {
            int randomPin = 1567;

            char[] randomPinCharArray = randomPin.ToString().ToCharArray();
            int[]  randomPinIntArray  = new int[4];
            for (int i = 0; i < 4; i++)
            {
                randomPinIntArray[i] = int.Parse(randomPinCharArray[i].ToString());
            }

            bool isValid = RandomPinGeneratorLibrary.ValidatePinDigits(randomPinIntArray);

            Assert.AreEqual(false, isValid);
        }
Exemple #2
0
        public void TestSizeOfBatchis1000()
        {
            int count = RandomPinGeneratorLibrary.BatchOfPinCodes().Count;

            Assert.AreEqual(count, 1000);
        }
Exemple #3
0
        public void TestSizeOfRandomPinCodes()
        {
            int size = RandomPinGeneratorLibrary.RandomPinGenerator().ToString().ToCharArray().Length;

            Assert.AreEqual(size, 4);
        }