using System.Collections.Generic; using Microsoft.Xna.Framework.Content; namespace Tests.Stub { public class StubContent : ContentManager { private readonly Dictionary assets; public StubContent(Dictionary assets) : base(new StubServices()) { this.assets = assets; } public override T Load(string assetName) { return (T) this.assets[assetName]; } } }