Esempio n. 1
0
            public void SetResourceDictionarySourceOnDifferentInstances_ExpectDifferentObjects(string url)
            {
                var setup = new AppDomainSetup {
                    ApplicationBase = "NOTHING_HERE"
                };

                AppDomainContext.Invoke(setup, () =>
                {
                    var shared     = new SharedDictionaryManager();
                    var expectDump = ResourceDictionaryUtilities.DumpMergedDictionaries(shared, url);

                    var loading = new LoadingResourceDictionary();
                    var dump    = ResourceDictionaryUtilities.DumpMergedDictionaries(loading, url);

                    Assert.That(dump, Is.Not.EqualTo(expectDump));
                });
            }
Esempio n. 2
0
                internal string DumpMergedDictionariesSharedDictionaryManager(string url)
                {
                    var target = new SharedDictionaryManager();

                    return(ResourceDictionaryUtilities.DumpMergedDictionaries(target, url));
                }
Esempio n. 3
0
                internal string DumpMergedDictionariesLoadingResourceDictionary(string url)
                {
                    var target = new LoadingResourceDictionary();

                    return(ResourceDictionaryUtilities.DumpMergedDictionaries(target, url));
                }