public void GetDescription_ImageDescription_GetImageDescription() { // Arrange IImage image = new ImageClass("path", ".html", 1, 1); var documentItem = new DocumentItem(image); // Act string description = documentItem.GetDescription(); // Assert Assert.Equal(expected: "Image: 1 1 path", description); }
public void GetDescription_ParagraphDescription_GetParagraphDescription() { // Arrange IParagraph paragraph = new Paragraph.Paragraph("text"); var documentItem = new DocumentItem(paragraph); // Act string description = documentItem.GetDescription(); // Assert Assert.Equal(expected: "Paragraph: text", description); }