public async void OverwriteOriginalInPlaceTest() { File.Copy(SRC_FILE, "overwrite_original_in_place_test.jpg", true); var opts = new ExifToolOptions(); var et = new ExifTool(opts); var result = await et.OverwriteTagsAsync("overwrite_original_in_place_test.jpg", UPDATES, FileWriteMode.OverwriteOriginalInPlace); Assert.True(result.Success); Assert.Null(result.Output); ValidateTags(await et.GetTagsAsync("overwrite_original_in_place_test.jpg")); File.Delete("overwrite_original_in_place_test.jpg"); }
public async void OverwriteTest() { File.Copy(SRC_FILE, "overwrite_test.jpg"); var opts = new ExifToolOptions(); var et = new ExifTool(opts); var result = await et.OverwriteTagsAsync("overwrite_test.jpg", UPDATES); Assert.True(result.Success); Assert.Null(result.Output); ValidateTag(await et.GetTagsAsync("overwrite_test.jpg")); File.Delete("overwrite_test.jpg"); }