Exemplo n.º 1
0
        public void ReturnValidDatesWithinTheMinimumAndMaximumYears()
        {
            DateTime date;

            // Create a bunch of dates and if it tries to create an invalid date an exception will be thrown...
            for (int i = 0; i < 3000; i++)
            {
                date = RandomValueProvider.RandomDateTime(
                    RandomValueProvider.RandomInteger(1600, 1900), RandomValueProvider.RandomInteger(1901, 2100));
            }
        }