public void GiveThePlayerNothingWhenTheItemDoesNotExist() { _zoneConfig = ZoneBuilder.Build("Truman Brewery Hall 1"); var item = _zoneConfig.GetItem("Blue Key"); Assert.Null(item); }
public void GiveThePlayerTheItemItRequested() { _zoneConfig = ZoneBuilder.Build("Truman Brewery Hall 1"); var item = _zoneConfig.GetItem("White Key"); Assert.Equal("White Key", item.GetName()); }
public Message Take(string item) { var loot = _startingZone.GetItem(item); if (loot == null) { return(new Message("I can't do that here!")); } return(new Message(loot.GetName() + ": Taken")); }