taglib-sharp/tests/fixtures/TagLib.Tests.Images/Validators/ImageTest.cs
/// <summary>
///    Modify and save the file.
/// </summary>
Modify and save the file.
Modify and save the file .
void ModifyFile ()
		{
			CreateTmpFile ();
			var tmp = ReadFile (TempImageFile);
			InvariantValidator.ValidateMetadataInvariants (tmp);
			ModificationValidator.ValidatePreModification (tmp);
			ModificationValidator.ModifyMetadata (tmp);
			ModificationValidator.ValidatePostModification (tmp);
			Assert.IsTrue (tmp.Writeable, "File should be writeable");
			Assert.IsFalse (tmp.PossiblyCorrupt, "Corrupt files should never be written");
			tmp.Save ();
		}
void ModifyFile ( ) { CreateTmpFile ( ) ; var tmp = ReadFile ( TempImageFile ) ; InvariantValidator . ValidateMetadataInvariants ( tmp ) ; ModificationValidator . ValidatePreModification ( tmp ) ; ModificationValidator . ModifyMetadata ( tmp ) ; ModificationValidator . ValidatePostModification ( tmp ) ; Assert . IsTrue ( tmp . Writeable , " " ) ; Assert . IsFalse ( tmp . PossiblyCorrupt , " " ) ; tmp . Save ( ) ; }
Modify and save the file.
Modify and save the file .