Exemplo n.º 1
0
        public void FormatNumeric6()
        {
            CryptoRandom generator = new CryptoRandom("{N:6}");

            for (int i = 0; i < 100; i++)
            {
                string text = generator.Generate();
                AssertValidLength(6, text.Length);
                Assert.IsTrue(ValidationProvider.IsInteger(text));
                Console.Out.WriteLine("result = {0}", text);
            }
        }