Skip to content

Commit

Permalink
Address xUnit compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Feb 8, 2018
1 parent 0cbead8 commit f64262f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions MetadataExtractor.Tests/Formats/Jpeg/JpegSegmentReaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ public void ReadSpecificSegments()
[Fact]
public void LoadJpegWithoutExifDataReturnsNull()
{
Assert.False(ReadSegments("Data/noExif.jpg")
.Any(s => s.Type == JpegSegmentType.App1));
Assert.DoesNotContain(
ReadSegments("Data/noExif.jpg"),
s => s.Type == JpegSegmentType.App1);
}

[Fact]
Expand Down
6 changes: 3 additions & 3 deletions MetadataExtractor.Tests/Formats/Png/PngChunkReaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ public void Extract_MSPaint()
Assert.Equal(PngChunkType.IHDR, chunks[0].ChunkType);
Assert.Equal(13, chunks[0].Bytes.Length);
Assert.Equal(PngChunkType.sRGB, chunks[1].ChunkType);
Assert.Equal(1, chunks[1].Bytes.Length);
Assert.Single(chunks[1].Bytes);
Assert.Equal(PngChunkType.gAMA, chunks[2].ChunkType);
Assert.Equal(4, chunks[2].Bytes.Length);
Assert.Equal(PngChunkType.pHYs, chunks[3].ChunkType);
Assert.Equal(9, chunks[3].Bytes.Length);
Assert.Equal(PngChunkType.IDAT, chunks[4].ChunkType);
Assert.Equal(17, chunks[4].Bytes.Length);
Assert.Equal(PngChunkType.IEND, chunks[5].ChunkType);
Assert.Equal(0, chunks[5].Bytes.Length);
Assert.Empty(chunks[5].Bytes);
}

[Fact]
Expand All @@ -75,7 +75,7 @@ public void Extract_Photoshop()
Assert.Equal(PngChunkType.IDAT, chunks[3].ChunkType);
Assert.Equal(130, chunks[3].Bytes.Length);
Assert.Equal(PngChunkType.IEND, chunks[4].ChunkType);
Assert.Equal(0, chunks[4].Bytes.Length);
Assert.Empty(chunks[4].Bytes);
}
}
}
2 changes: 1 addition & 1 deletion MetadataExtractor.Tests/IO/IndexedReaderTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public abstract class IndexedReaderTestBase
[Fact]
public void DefaultEndianness()
{
Assert.Equal(true, CreateReader(new byte[1]).IsMotorolaByteOrder);
Assert.True(CreateReader(new byte[1]).IsMotorolaByteOrder);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion MetadataExtractor.Tests/IO/SequentialReaderTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public abstract class SequentialReaderTestBase
[Fact]
public void DefaultEndianness()
{
Assert.Equal(true, CreateReader(new byte[1]).IsMotorolaByteOrder);
Assert.True(CreateReader(new byte[1]).IsMotorolaByteOrder);
}

[Fact]
Expand Down

0 comments on commit f64262f

Please sign in to comment.