public void WorldObjectFactoryCreatesRenderable() { var worldObject = worldObjectFactory.Create(); mockRenderableFactory.Verify(factory => factory.Create(), Times.Once()); mockRenderable.Verify(renderable => renderable.Update(new Vector2(), new Vector2(), new Vector2(1, 1)), Times.Once()); }
public List <WorldObjectBaseAbstract> CreateWorldObjects(int numberOfObjects) { for (int i = 0; i <= numberOfObjects; i++) { // Make random objects? worldObjects.Add(oF.Create(WorldObjects.HealthPotion)); worldObjects.Add(oF.Create(WorldObjects.Spikes)); } return(worldObjects); }