示例#1
0
 public void CommentSetTest([PexAssumeUnderTest] XmpTag target, string value)
 {
     target.Comment = value;
     PexAssert.AreEqual(target.GetLangAltNode(XmpTag.DC_NS, "description"), value);
     PexAssert.AreEqual(target.GetLangAltNode(XmpTag.EXIF_NS, "UserComment"), value);
     // TODO: add assertions to method XmpTagTest.CommentSetTest(XmpTag, String)
 }
示例#2
0
        public string CommentGetUserCommentTest([PexAssumeUnderTest] XmpTag target, string value)
        {
            PexAssume.IsNotNull(value);
            PexAssume.IsNull(target.GetLangAltNode(XmpTag.DC_NS, "description"));
            target.SetLangAltNode(XmpTag.EXIF_NS, "UserComment", value);;
            string result = target.Comment;

            PexAssert.AreEqual(result, target.GetLangAltNode(XmpTag.EXIF_NS, "UserComment"));
            return(result);
            // TODO: add assertions to method XmpTagTest.CommentGetTest(XmpTag)
        }
示例#3
0
        public string CopyrightGetTest([PexAssumeUnderTest] XmpTag target, string copyright)
        {
            target.Copyright = copyright;
            string result = target.Copyright;

            PexAssert.AreEqual(target.GetLangAltNode(XmpTag.DC_NS, "rights"), result);
            return(result);
            // TODO: add assertions to method XmpTagTest.CopyrightGetTest(XmpTag)
        }
示例#4
0
        public string TitleGetTest([PexAssumeUnderTest] XmpTag target, string title)
        {
            target.Title = title;
            string result = target.Title;

            PexAssert.AreEqual(result, target.GetLangAltNode(XmpTag.DC_NS, "title"));
            return(result);
            // TODO: add assertions to method XmpTagTest.TitleGetTest(XmpTag)
        }
示例#5
0
 public void SetLangAltNodeTest(
     [PexAssumeUnderTest] XmpTag target,
     string ns,
     string name,
     string value
     )
 {
     PexAssume.IsNotNull(ns);
     PexAssume.IsNotNull(name);
     target.SetLangAltNode(ns, name, value);
     PexAssert.AreEqual(target.GetLangAltNode(ns, name), value);
     // TODO: add assertions to method XmpTagTest.SetLangAltNodeTest(XmpTag, String, String, String)
 }
示例#6
0
 public void CopyrightSetTest([PexAssumeUnderTest] XmpTag target, string value)
 {
     target.Copyright = value;
     PexAssert.AreEqual(target.GetLangAltNode(XmpTag.DC_NS, "rights"), value);
     // TODO: add assertions to method XmpTagTest.CopyrightSetTest(XmpTag, String)
 }
示例#7
0
 public void TitleSetTest([PexAssumeUnderTest] XmpTag target, string value)
 {
     target.Title = value;
     PexAssert.AreEqual(value, target.GetLangAltNode(XmpTag.DC_NS, "title"));
     // TODO: add assertions to method XmpTagTest.TitleSetTest(XmpTag, String)
 }