public async Task FileReturnsSimilarImage() { using var image = SKImage.FromEncodedData("images/logo.png"); var info = new SKImageInfo(image.Width, image.Height, image.ColorType, image.AlphaType, image.ColorSpace); var source = new FileImageSource { File = "images/logo.png" }; var result = await source.ToSKImageAsync(); Assert.NotNull(result); var resultInfo = new SKImageInfo(result.Width, result.Height, result.ColorType, result.AlphaType, result.ColorSpace); Assert.Equal(info, resultInfo); }