diff --git a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs index 2c902d3b8..f380724df 100644 --- a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs +++ b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs @@ -7,11 +7,9 @@ namespace ImageSharp.Tests { using System; using System.Collections; - using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; - using ImageSharp.Processing; using Xunit; public class ExifProfileTests @@ -279,13 +277,11 @@ namespace ImageSharp.Tests ExifProfile profile = image.MetaData.ExifProfile; Assert.NotNull(profile); - IEnumerator enumerator = profile.Values.GetEnumerator(); - while (enumerator.MoveNext()) + foreach (ExifValue value in profile.Values) { - ExifValue entry = enumerator.Current; - if (entry.DataType == ExifDataType.Undefined) + if (value.DataType == ExifDataType.Undefined) { - Assert.NotEqual(0, entry.NumberOfComponents); + Assert.Equal(4, value.NumberOfComponents); } } }