public void CountInIntervalTest() { WeatherStation target = new WeatherStation(); Assert.IsTrue(target.SetMeasurementAtTime("02:30", 20, 50)); Assert.IsTrue(target.SetMeasurementAtTime("05:00", 22, 55)); Assert.IsTrue(target.SetMeasurementAtTime("07:30", 24, 60)); Assert.AreEqual(3, target.CountInInterval("00:00", "23:45")); Assert.AreEqual(-1, target.CountInInterval("02:35", "07:30"), "Unzulässige Zeitangabe 00:05"); Assert.AreEqual(3, target.CountInInterval("02:30", "07:30"), "Genau eingegrenzt"); Assert.AreEqual(1, target.CountInInterval("02:45", "07:15"), "Rand genau ausgegrenzt"); }