public void DefaultRendersHtmlAttribute() { var name = new OpenGraphName("test"); var expected = " xmlns:og=\"http://ogp.me/ns#\" "; Assert.AreEqual(expected, name.Namespace.ToHtmlAttributeString()); }
public void NameCtorGivesOgNamespaceName() { var name = "toto"; OpenGraphName obj = new OpenGraphName(name); Assert.AreEqual("og", obj.NamespaceName); Assert.AreEqual(name, obj.Name); }
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); }