public void LooksForNearByThingsWhenHunting() { this.mockThingManager.Setup(m => m.FindThingsNear(parent)).Returns(new List<Thing>()); var grue = new GrueBehavior(mockThingManager.Object) { Parent = parent }; grue.Hunt(); this.mockThingManager.Verify(m => m.FindThingsNear(parent)); }
public void LooksForNearByThingsWhenHunting() { this.mockThingManager.Setup(m => m.FindThingsNear(parent)).Returns(new List <Thing>()); var grue = new GrueBehavior() { Parent = parent }; grue.Hunt(); this.mockThingManager.Verify(m => m.FindThingsNear(parent)); }