public void SoundEffectFromContent(string filename, long durationTicks) { var services = new GameServiceContainer(); services.AddService <IGraphicsDeviceService>(new GraphicsDeviceProxy()); var content = new ContentManagerProxy(services); var soundEffect = content.Load <SoundEffect>(Paths.Audio(filename)); Assert.AreEqual(durationTicks, soundEffect.Duration.Ticks); }