public void InitializeResolver() { if (StackTraceExtensions.ForceUseOfMockResolver()) { resolver = new MockResolver(); return; } //ncrunch: no coverage start if (!StackTraceExtensions.StartedFromProgramMain) { StackTraceExtensions.SetUnitTestName(TestContext.CurrentContext.Test.FullName); } resolver = new XnaResolver(); if (StackTraceExtensions.IsCloseAfterFirstFrameAttributeUsed() || StackTraceExtensions.StartedFromNCrunchOrNunitConsole) { Resolve <Window>().CloseAfterFrame(); } //ncrunch: no coverage end }