Skip to content

Commit 2a7caf3

Browse files
committed
Add unit test for image size
1 parent 7f7d870 commit 2a7caf3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/Nullforce.Api.Derpibooru.JsonModel.Tests/Integration/DeserializationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public async void ImageRoot_GetJson_SuccessWithoutExceptions()
135135
image.OriginalSHA512Hash.Should().Be("a5b68e1cb435a818cc15d5a4e8f879d350700ae1dbe9d12b7d9e421abc6d2f6b622318d99d0e5b120c2c59b3df3b9b120e065a507142f48525935cbfd836588d");
136136
image.Score.Should().Be(image.UpvoteCount - image.DownvoteCount);
137137
image.SHA512Hash.Should().Be("a5b68e1cb435a818cc15d5a4e8f879d350700ae1dbe9d12b7d9e421abc6d2f6b622318d99d0e5b120c2c59b3df3b9b120e065a507142f48525935cbfd836588d");
138+
image.Size.Should().Be(1305509);
138139
image.SourceUri.Should().Be("http://yakovlev-vad.deviantart.com/art/Favorite-place-Color-Sketch-668408843");
139140
image.TagCount.Should().Be(image.TagIds.Length);
140141
image.TagIds.Should().HaveCount(image.TagCount);

0 commit comments

Comments
 (0)