public void Should_determine_if_elements_are_loaded() { // the important distinction here is the namespace matching var proc = new XamlPostProcessor(); proc.LoadElementDefaults("<test1 a='1' />"); proc.LoadElementDefaults($"<test2 xmlns='{Uri}' a='2' />"); Assert.IsTrue(proc.AreElementDefaultsLoaded("test1")); Assert.IsTrue(proc.AreElementDefaultsLoaded("test2", Uri)); Assert.IsFalse(proc.AreElementDefaultsLoaded("test2")); }