예제 #1
0
 public static void Initialize()
 {
     if (testHost == null)
     {
         testHost = new TestHost();
     }
 }
예제 #2
0
        public async Task MetroWindowSmokeTest()
        {
            await TestHost.SwitchToAppThread();

            await TestHelpers.CreateInvisibleWindowAsync <MetroWindow>();
        }
예제 #3
0
        public async Task CanAddAppThemeBeforeGetterIsCalled()
        {
            await TestHost.SwitchToAppThread();

            ThemeManager.AddAppTheme("TestTheme", new Uri("pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml"));
        }