Пример #1
0
        public async Task UnsupportedImageFormatTest()
        {
            await using var fileStream = ImageTestsHelper.OpenFileForReading("Images\\556-200x300.webp");
            var imageFormat = _imageMetadataReader.DetectFormat(fileStream);

            Assert.Null(imageFormat);

            var imageSize = _imageMetadataReader.ReadSize(fileStream);

            Assert.Null(imageSize);
        }