public void Spawn_Successfully() { var entity = Substitute.For <PoolableEntity>(); _pool.Spawn().Returns(entity); Assert.AreEqual(entity, _poolService.Spawn <PoolableEntity>()); _pool.Received().Spawn(); }