public async Task TestNonExistentPartLargeImage() { var api = new BricklinkImageApi(); var image = await api.GetLargeImageBytesAsync(ItemTypeCodes.Part, "8675309", ImageFormat.Jpeg); Assert.IsNull(image); }
public async Task TestValidPartLargeImage() { var api = new BricklinkImageApi(); var image = await api.GetLargeImageBytesAsync(ItemTypeCodes.Part, "15068", ImageFormat.Jpeg); Assert.IsNotNull(image); Assert.AreNotEqual(0, image.Length); }