public static void Initialize() { if (testHost == null) { testHost = new TestHost(); } }
public async Task MetroWindowSmokeTest() { await TestHost.SwitchToAppThread(); await TestHelpers.CreateInvisibleWindowAsync <MetroWindow>(); }
public async Task CanAddAppThemeBeforeGetterIsCalled() { await TestHost.SwitchToAppThread(); ThemeManager.AddAppTheme("TestTheme", new Uri("pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml")); }