public void TestTitleXmlLang()
 {
     XCRI.Interfaces.ITitle title = new XCRI.Title()
     {
         Value = "Sample title in Spanish", XmlLanguage = "es"
     };
     this.TestNode
     (
         this.Generate(title),
         (n) => { HasAttributeWithValue(n, "lang", XCRI.Configuration.Namespaces.XmlNamespace, "es"); }
     );
 }
 public void TestTitle()
 {
     XCRI.Interfaces.ITitle title = new XCRI.Title()
     {
         Value = "Sample title"
     };
     this.TestNode
     (
         this.Generate(title),
         (n) => { HasCorrectNameAndNamespace(n, "title", XCRI.Configuration.Namespaces.XCRICAP11NamespaceUri); },
         (n) => { ContainsStringValue(n, "Sample title"); }
     );
 }