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. }
public void TestAdding1MaximumSunshines() { SunshineMeasurement sm; sm = new SunshineMeasurement("Eindhoven"); sm.addSunshineOfLastDay(100); Assert.AreEqual("Eindhoven", sm.Cityname); Assert.AreEqual(100, sm.getMaximumSunshine()); }