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

            ctx.GetPreferredPrefix(null);
        }
Esempio n. 4
0
        public void GetPreferredPrefixNull()
        {
            var ctx = new XamlSchemaContext(null, null);

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