public void PeopleWatcher_NoPeopleThenOnePersonAtLocation() { PeopleWatcher pw = new PeopleWatcher(10); Assert.AreEqual(0, pw.NumberOfPeopleAtLocation(5)); pw.AppearAtLocation(5); Assert.AreEqual(1, pw.NumberOfPeopleAtLocation(5)); }
public void PeopleWatcher_CorrectNumberOfPeoppleWhenMoveFromOneLocationToAnother() { PeopleWatcher pw = new PeopleWatcher(10); pw.AppearAtLocation(5); pw.GoToLocationFromAnother(5, 6); Assert.AreEqual(0, pw.NumberOfPeopleAtLocation(5)); Assert.AreEqual(1, pw.NumberOfPeopleAtLocation(6)); }