示例#1
0
        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" ?
        }
示例#2
0
 public void GetPreferredPrefixNull()
 {
     Assert.Throws(typeof(ArgumentNullException), () =>
     {
         var ctx = new XamlSchemaContext(null, null);
         ctx.GetPreferredPrefix(null);
     });
 }
示例#3
0
        public void GetPreferredPrefixNull()
        {
            var ctx = new XamlSchemaContext(null, null);

            ctx.GetPreferredPrefix(null);
        }
示例#4
0
        public void GetPreferredPrefixNull()
        {
            var ctx = new XamlSchemaContext(null, null);

            Assert.Throws <ArgumentNullException> (() => ctx.GetPreferredPrefix(null));
        }