using System;
using NUnit.Framework;
using TagLib.IFD;
using TagLib.IFD.Entries;
using TagLib.IFD.Tags;
using TagLib.Xmp;
using TagLib.Tests.Images.Validators;

namespace TagLib.Tests.Images
{
	[TestFixture]
	public class JpegNoMetadataTest
	{
		[Test]
		public void Test ()
		{
			ImageTest.Run ("sample_no_metadata.jpg",
				new JpegNoMetadataTestInvariantValidator (),
				NoModificationValidator.Instance,
				new NoModificationValidator (),
				new CommentModificationValidator (),
				new TagCommentModificationValidator (TagTypes.TiffIFD, false),
				new TagCommentModificationValidator (TagTypes.XMP, false),
				new TagKeywordsModificationValidator (TagTypes.XMP, false)
			);
		}
	}

	public class JpegNoMetadataTestInvariantValidator : IMetadataInvariantValidator
	{
		public void ValidateMetadataInvariants (Image.File file)
		{
			Assert.IsNotNull (file);
		}
	}
}

using System;
using NUnit.Framework;
using TagLib.IFD;
using TagLib.IFD.Entries;
using TagLib.IFD.Tags;
using TagLib.Xmp;
using TagLib.Tests.Images.Validators;

namespace TagLib.Tests.Images
{
	[TestFixture]
	public class JpegNoMetadataTest
	{
		[Test]
		public void Test ()
		{
			ImageTest.Run ("sample_no_metadata.jpg",
				new JpegNoMetadataTestInvariantValidator (),
				NoModificationValidator.Instance,
				new NoModificationValidator (),
				new TagCommentModificationValidator (TagTypes.TiffIFD, false),
				new TagCommentModificationValidator (TagTypes.XMP, false),
				new TagKeywordsModificationValidator (TagTypes.XMP, false)
			);
		}
	}

	public class JpegNoMetadataTestInvariantValidator : IMetadataInvariantValidator
	{
		public void ValidateMetadataInvariants (Image.File file)
		{
			Assert.IsNotNull (file);
		}
	}
}

Remove CommentTest for jpeg test without metadata
Remove CommentTest for jpeg test without metadata

It does not make sense to have that test here, because a comment
cannot be added, when no tag is present. And it is against the current
taglib policy to add tags without a request from the user.

https://bugzilla.gnome.org/show_bug.cgi?id=619920
