示例#1
0
 public void SetUp()
 {
     GLib.GType.Init ();
     File.Copy ("../data/" + imagefile, "./" + imagefile, true);
     image = ImageFactory.Open ("./" + imagefile);
     image.ReadMetadata ();
 }
示例#2
0
文件: Image.cs 项目: mono/exiv2-sharp
        public void SetAndReadComment()
        {
            string comment = "comment set by unit test";
            image.Comment = comment;
            image.WriteMetadata ();

            image = ImageFactory.Open ("./" + imagefile);
            image.ReadMetadata ();
            Assert.AreEqual (image.Comment, comment);
        }