Example #1
0
        public void TestNoMaximumSunshine()
        {
            SunshineMeasurement sm;

            sm = new SunshineMeasurement("Eindhoven");

            int bla = sm.getMaximumSunshine();  // Now an exception should be thrown since there are no sunshines added.
        }
Example #2
0
        public void TestAdding1MaximumSunshines()
        {
            SunshineMeasurement sm;

            sm = new SunshineMeasurement("Eindhoven");

            sm.addSunshineOfLastDay(100);

            Assert.AreEqual("Eindhoven", sm.Cityname);
            Assert.AreEqual(100, sm.getMaximumSunshine());
        }