Beispiel #1
0
        public void Should_Return_Date_In_Five_Year_Range()
        {
            // Arrange
            DateTime MinDate = new DateTime(DateTime.UtcNow.Year - 5, 1, 1);

            // Act
            DateTime generatedDate = dataGeneration.RandomDate();

            // Assert
            Assert.IsTrue(generatedDate <DateTime.Now && generatedDate> MinDate);
        }