public void DefaultRendersHtmlAttribute()
        {
            var name     = new OpenGraphName("test");
            var expected = " xmlns:og=\"http://ogp.me/ns#\" ";

            Assert.AreEqual(expected, name.Namespace.ToHtmlAttributeString());
        }
Esempio n. 2
0
        public void NameCtorGivesOgNamespaceName()
        {
            var           name = "toto";
            OpenGraphName obj  = new OpenGraphName(name);

            Assert.AreEqual("og", obj.NamespaceName);
            Assert.AreEqual(name, obj.Name);
        }
Esempio n. 3
0
        public void HasDefinedNameAndNamespace()
        {
            var name   = "toto";
            var nsName = "super";
            var ns     = new OpenGraphNamespace(nsName, "a");
            var obj    = new OpenGraphName(ns, name);

            Assert.AreEqual(nsName, obj.NamespaceName);
            Assert.AreEqual(name, obj.Name);
        }