public void ShapeGeometrySet() { TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName); GeometryPaths dto = new GeometryPaths { Paths = new List <GeometryPath> { new GeometryPath { PathData = new List <PathSegment> { new MoveToPathSegment { X = 0, Y = 0 }, new LineToPathSegment { X = 0, Y = 200 }, new LineToPathSegment { X = 200, Y = 300 }, new LineToPathSegment { X = 400, Y = 200 }, new LineToPathSegment { X = 400, Y = 0 }, new ClosePathSegment() } } } }; ShapeBase shape = TestUtils.SlidesApi.SetShapeGeometryPath(c_fileName, 4, 1, dto, c_password, c_folderName); Assert.IsNotNull(shape); }
public void ShapeGeometryGet() { TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName); GeometryPaths paths = TestUtils.SlidesApi.GetShapeGeometryPath(c_fileName, 4, 2, c_password, c_folderName); Assert.IsNotNull(paths.Paths); Assert.AreEqual(1, paths.Paths.Count); }