public void TestApplicationResourceDictionaryUriWithResourcesBelow()
        {
            ResourcesAboveMode userControl = new ResourcesAboveMode();

            ImplicitStyleManager.ApplicationResourceDictionaryUri = new Uri("Microsoft.Windows.Controls.Testing.Theming;component/ImplicitStyleManager/InnerStyleResourceDictionary.xaml", UriKind.Relative);

            TestAsync(
                userControl,
                () => Assert.IsInstanceOfType(userControl.btn.Foreground, typeof(SolidColorBrush)),
                () => Assert.AreEqual(Colors.Red, ((SolidColorBrush)userControl.btn.Foreground).Color),
                () => ImplicitStyleManager.ApplicationResourceDictionaryUri = null);
        }
        public void TestApplicationResourcesWithResourcesBelow()
        {
            ResourcesAboveMode userControl = new ResourcesAboveMode();

            AddApplicationResources(Colors.Green);

            TestAsync(
                userControl,
                () => Assert.IsInstanceOfType(userControl.btn.Foreground, typeof(SolidColorBrush)),
                () => Assert.AreEqual(Colors.Red, ((SolidColorBrush)userControl.btn.Foreground).Color),
                () => Application.Current.Resources.Clear());
        }