public async Task ReadImageSizeTest() { await using var fileStream = ImageTestsHelper.OpenFileForReading(Path.Combine(ImageTestsHelper.JpegImagesDirectory, "1043-1200x900.jpg")); var imageSize = _imageMetadataReader.ReadSize(fileStream); Assert.Equal(1200, imageSize.Width); Assert.Equal(900, imageSize.Height); Assert.Equal(265504, imageSize.Bytes); }