public void ShouldGetFirstItemOfCompositeSlices() { var document = Fixtures.GetDocument("composite_slices.json"); var resolver = prismic.DocumentLinkResolver.For(doc => String.Format("http://localhost/{0}/{1}", doc.Type, doc.Id)); SliceZone sliceZone = document.GetSliceZone("page.page_content"); CompositeSlice firstSlice = (CompositeSlice)sliceZone.Slices[0]; StructuredText richText = firstSlice.GetPrimary().GetStructuredText("rich_text"); Assert.Equal("<p>Here is paragraph 1.</p><p>Here is paragraph 2.</p>", richText.AsHtml(resolver)); CompositeSlice secondSlice = (CompositeSlice)sliceZone.Slices[1]; String expectedUrl = "https://prismic-io.s3.amazonaws.com/levi-templeting%2Fdc0bfab3-d222-44a6-82b8-c74f8cdc6a6b_200_s.gif"; Assert.Equal(expectedUrl, secondSlice.GetItems().GroupDocs[0].GetImage("image").GetView("main").Url); }