Beispiel #1
0
 public void ISOSpeedRatingsSetTest([PexAssumeUnderTest] XmpTag target, uint?value)
 {
     PexAssume.IsNotNull(value);
     target.ISOSpeedRatings = value;
     PexAssert.AreEqual(value.ToString(), target.GetCollectionNode(XmpTag.EXIF_NS, "ISOSpeedRatings")[0].ToString());
     // TODO: add assertions to method XmpTagTest.ISOSpeedRatingsSetTest(XmpTag, Nullable`1<UInt32>)
 }
Beispiel #2
0
 public void CreatorSetTest([PexAssumeUnderTest] XmpTag target, string value)
 {
     PexAssume.IsNotNull(value);
     target.Creator = value;
     PexAssert.AreEqual(target.GetCollectionNode(XmpTag.DC_NS, "creator")[0], value);
     // TODO: add assertions to method XmpTagTest.CreatorSetTest(XmpTag, String)
 }
Beispiel #3
0
 public void KeywordsSetTest([PexAssumeUnderTest] XmpTag target, string[] value)
 {
     PexAssume.IsNotNull(value);
     PexAssume.IsTrue(!value.Contains(null));
     target.Keywords = value;
     PexAssert.IsTrue(value.SequenceEqual(target.GetCollectionNode(XmpTag.DC_NS, "subject")));
     // TODO: add assertions to method XmpTagTest.KeywordsSetTest(XmpTag, String[])
 }
Beispiel #4
0
 public string[] KeywordsGetTest([PexAssumeUnderTest] XmpTag target, string[] keywords)
 {
     PexAssume.IsNotNull(keywords);
     PexAssume.IsTrue(!keywords.Contains(null));
     target.Keywords = keywords;
     string[] result = target.Keywords;
     PexAssert.IsTrue(result.SequenceEqual(target.GetCollectionNode(XmpTag.DC_NS, "subject")));
     return(result);
     // TODO: add assertions to method XmpTagTest.KeywordsGetTest(XmpTag)
 }
Beispiel #5
0
        public uint?ISOSpeedRatingsGetTest([PexAssumeUnderTest] XmpTag target, uint value)
        {
            PexAssume.IsNotNull(value);
            target.ISOSpeedRatings = value;
            uint?result = target.ISOSpeedRatings;

            PexAssert.AreEqual(result.ToString(), target.GetCollectionNode(XmpTag.EXIF_NS, "ISOSpeedRatings")[0].ToString());
            return(result);
            // TODO: add assertions to method XmpTagTest.ISOSpeedRatingsGetTest(XmpTag)
        }
Beispiel #6
0
        public string CreatorGetTest([PexAssumeUnderTest] XmpTag target, string creator)
        {
            PexAssume.IsNotNull(creator);
            target.Creator = creator;
            string result = target.Creator;

            PexAssert.AreEqual(target.GetCollectionNode(XmpTag.DC_NS, "creator")[0], result);
            return(result);
            // TODO: add assertions to method XmpTagTest.CreatorGetTest(XmpTag)
        }
Beispiel #7
0
 public void SetCollectionNodeTest(
     [PexAssumeUnderTest] XmpTag target,
     string ns,
     string name,
     string[] values,
     XmpNodeType type
     )
 {
     PexAssume.IsNotNull(ns);
     PexAssume.IsNotNull(name);
     PexAssume.IsNotNull(values);
     PexAssume.IsTrue(!values.Contains(null));
     PexAssume.IsTrue(type != XmpNodeType.Simple && type != XmpNodeType.Alt);
     target.SetCollectionNode(ns, name, values, type);
     PexAssert.IsTrue(values.SequenceEqual(target.GetCollectionNode(ns, name)));
     // TODO: add assertions to method XmpTagTest.SetCollectionNodeTest(XmpTag, String, String, String[], XmpNodeType)
 }
Beispiel #8
0
 public string[] GetCollectionNodeTest(
     [PexAssumeUnderTest] XmpTag target,
     string ns,
     string name,
     string[] values
     )
 {
     PexAssume.IsNotNull(ns);
     PexAssume.IsNotNull(name);
     PexAssume.IsNotNull(values);
     PexAssume.IsTrue(!values.Contains(null));
     target.SetCollectionNode(ns, name, values, XmpNodeType.Seq);
     string[] result = target.GetCollectionNode(ns, name);
     PexAssert.IsTrue(result.SequenceEqual(values));
     return(result);
     // TODO: add assertions to method XmpTagTest.GetCollectionNodeTest(XmpTag, String, String)
 }