Пример #1
0
        public async Task TestNonExistentPartLargeImage()
        {
            var api   = new BricklinkImageApi();
            var image = await api.GetLargeImageBytesAsync(ItemTypeCodes.Part, "8675309", ImageFormat.Jpeg);

            Assert.IsNull(image);
        }
Пример #2
0
        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);
        }