public void GetPreferredPrefix() { var ctx = new XamlSchemaContext(null, null); Assert.AreEqual("x", ctx.GetPreferredPrefix(XamlLanguage.Xaml2006Namespace), "#1"); Assert.AreEqual("p", ctx.GetPreferredPrefix("urn:4mbw93w89mbh"), "#2"); // ... WTF "p" ? Assert.AreEqual("p", ctx.GetPreferredPrefix("urn:etbeoesmj"), "#3"); // ... WTF "p" ? }
public void GetPreferredPrefixNull() { Assert.Throws(typeof(ArgumentNullException), () => { var ctx = new XamlSchemaContext(null, null); ctx.GetPreferredPrefix(null); }); }
public void GetPreferredPrefixNull() { var ctx = new XamlSchemaContext(null, null); ctx.GetPreferredPrefix(null); }
public void GetPreferredPrefixNull() { var ctx = new XamlSchemaContext(null, null); Assert.Throws <ArgumentNullException> (() => ctx.GetPreferredPrefix(null)); }