public void RelativeAndAbsoluteURI(bool useCompiledXaml)
            {
                var layout = new ResourceDictionaryWithSource(useCompiledXaml);

                Assert.That(((ResourceDictionary)layout.Resources["relURI"]).Source, Is.EqualTo(new Uri("./SharedResourceDictionary.xaml", UriKind.Relative)));
                Assert.That(((ResourceDictionary)layout.Resources["relURI"])["sharedfoo"], Is.TypeOf <Style>());
                Assert.That(((ResourceDictionary)layout.Resources["absURI"]).Source, Is.EqualTo(new Uri("/SharedResourceDictionary.xaml", UriKind.Relative)));
                Assert.That(((ResourceDictionary)layout.Resources["absURI"])["sharedfoo"], Is.TypeOf <Style>());
                Assert.That(((ResourceDictionary)layout.Resources["shortURI"]).Source, Is.EqualTo(new Uri("SharedResourceDictionary.xaml", UriKind.Relative)));
                Assert.That(((ResourceDictionary)layout.Resources["shortURI"])["sharedfoo"], Is.TypeOf <Style>());
                Assert.That(((ResourceDictionary)layout.Resources["Colors"])["MediumGrayTextColor"], Is.TypeOf <Color>());
                Assert.That(((ResourceDictionary)layout.Resources["CompiledColors"])["MediumGrayTextColor"], Is.TypeOf <Color>());
            }
            public void RDWithSourceAreFound(bool useCompiledXaml)
            {
                var layout = new ResourceDictionaryWithSource(useCompiledXaml);

                Assert.That(layout.label.TextColor, Is.EqualTo(Color.Pink));
            }