Ejemplo n.º 1
0
        public void IsWithinRangeOf_IsNotWithinRangeWhichSuperseedsNewYear_ReturnsFalse(int day, int month)
        {
            // Arrange
            SeasonalDate lowerBound = new SeasonalDate(10, 10);
            SeasonalDate upperBound = new SeasonalDate(4, 4);
            SeasonalDate date       = new SeasonalDate(day, month);
            // Act
            bool isWithinTheRange = date.IsWithinRangeOf(lowerBound, upperBound);

            // Assert
            Assert.False(isWithinTheRange);
        }
Ejemplo n.º 2
0
        public void IsWithinRangeOf_IsNotWithinNaturalRange_ReturnsFalse(int day, int month)
        {
            // Arrange
            SeasonalDate lowerBound = new SeasonalDate(2, 2);
            SeasonalDate upperBound = new SeasonalDate(5, 10);
            SeasonalDate date       = new SeasonalDate(day, month);
            // Act
            bool isWithinTheRange = date.IsWithinRangeOf(lowerBound, upperBound);

            // Assert
            Assert.False(isWithinTheRange);
        }