public void RemoteConverterTest() { var query = new FigmaImageQuery("Jv8kwhoRsrmtJDsSHcTgWGYu", new[] { "I56:3;56:205" }); var file = AppContext.Api.GetImage(query); Assert.IsNotNull(file); }
public void GetImage() { var fileId = "NxLlq5B5yRY0HbBcia7LmA"; var fileResponse = AppContext.Api.GetFile(new FigmaFileQuery(fileId)); var figmaImages = fileResponse.document.FindImageNodes().ToArray(); var image = figmaImages.FirstOrDefault(); var query = new FigmaImageQuery(fileId, new[] { image.id }); var file = AppContext.Api.GetImage(query); Assert.IsNotNull(file); Assert.IsNotNull(file.images); Assert.IsTrue(file.images.Count > 0); }