Exemple #1
0
        public void ARainyDayAndADroughtDayAreNotTheSameWeatherTest()
        {
            var rainyDay   = new MeteorologicalDay(1, new Rain(), null);
            var droughtDay = new MeteorologicalDay(2, new Drought(), null);

            Assert.IsFalse(rainyDay.HasTheSameWeather(droughtDay));
        }
Exemple #2
0
        public void TwoRainyDaysAreTheSameWeatherTest()
        {
            var day1 = new MeteorologicalDay(1, new Rain(), null);
            var day2 = new MeteorologicalDay(2, new Rain(), null);

            Assert.IsTrue(day1.HasTheSameWeather(day2));
        }