public void testSetsCurrentWeatherConditions() { WeatherTracker tracker = new WeatherTracker(); tracker.setCurrentConditions("cloudy"); Assert.Equal("cloudy", tracker.currentConditions); }
public void testNotifiesWhenWeatherChanges() { WeatherTracker tracker = new WeatherTracker(); tracker.setCurrentConditions("cloudy"); MockNotifier mockNotifier = new MockNotifier(); tracker.notify(mockNotifier); Assert.Equal("foo", mockNotifier.getConsoleOutput()); }