Beispiel #1
0
        public uint?FocalLengthIn35mmFilmGetTest([PexAssumeUnderTest] XmpTag target)
        {
            uint?result = target.FocalLengthIn35mmFilm;

            PexAssert.AreEqual(result, target.GetUIntNode(XmpTag.EXIF_NS, "FocalLengthIn35mmFilm"));
            return(result);
            // TODO: add assertions to method XmpTagTest.FocalLengthIn35mmFilmGetTest(XmpTag)
        }
Beispiel #2
0
        public uint?RatingGetTest([PexAssumeUnderTest] XmpTag target, uint rating)
        {
            target.Rating = rating;
            uint?result = target.Rating;

            PexAssert.AreEqual(result, target.GetUIntNode(XmpTag.XAP_NS, "Rating"));
            return(result);
            // TODO: add assertions to method XmpTagTest.RatingGetTest(XmpTag)
        }
Beispiel #3
0
        public ImageOrientation OrientationGetTest([PexAssumeUnderTest] XmpTag target, ImageOrientation value)
        {
            PexAssume.IsNotNull(value);
            PexAssume.IsTrue((uint)value >= 1U && (uint)value <= 8U);
            target.Orientation = value;
            ImageOrientation result = target.Orientation;

            PexAssert.AreEqual(result, (ImageOrientation)target.GetUIntNode(XmpTag.TIFF_NS, "Orientation"));
            return(result);
            // TODO: add assertions to method XmpTagTest.OrientationGetTest(XmpTag)
        }
Beispiel #4
0
        public uint?GetUIntNodeTest(
            [PexAssumeUnderTest] XmpTag target,
            string ns,
            string name,
            uint value
            )
        {
            PexAssume.IsNotNull(ns);
            PexAssume.IsNotNull(name);
            PexAssume.IsNotNull(value);
            target.SetTextNode(ns, name, value.ToString());
            uint?result = target.GetUIntNode(ns, name);

            PexAssert.AreEqual(result, value);
            return(result);
            // TODO: add assertions to method XmpTagTest.GetUIntNodeTest(XmpTag, String, String)
        }
Beispiel #5
0
 public void RatingSetTest([PexAssumeUnderTest] XmpTag target, uint?value)
 {
     target.Rating = value;
     PexAssert.AreEqual(value, target.GetUIntNode(XmpTag.XAP_NS, "Rating"));
     // TODO: add assertions to method XmpTagTest.RatingSetTest(XmpTag, Nullable`1<UInt32>)
 }
Beispiel #6
0
 public void FocalLengthIn35mmFilmSetTest([PexAssumeUnderTest] XmpTag target, uint?value)
 {
     target.FocalLengthIn35mmFilm = value;
     PexAssert.AreEqual(value, target.GetUIntNode(XmpTag.EXIF_NS, "FocalLengthIn35mmFilm"));
     // TODO: add assertions to method XmpTagTest.FocalLengthIn35mmFilmSetTest(XmpTag, Nullable`1<UInt32>)
 }