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());
        }
        public void TestApplicationResourceDictionaryUriWithResourcesBelow()
        {
            ResourcesAboveMode userControl = new ResourcesAboveMode();

            SetApplicationResourceDictionaryUri(new Uri("System.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),
                () => SetApplicationResourceDictionaryUri(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());
        }
        public void TestApplicationResourceDictionaryUriWithResourcesBelow()
        {
            ResourcesAboveMode userControl = new ResourcesAboveMode();

            SetApplicationResourceDictionaryUri(new Uri("System.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),
                () => SetApplicationResourceDictionaryUri(null));
        }