Beispiel #1
0
        public void CanReturnParagraphIfItemHasIt()
        {
            var          p    = new TestParagraph();
            DocumentItem item = new DocumentItem(p);

            Assert.AreEqual(p, item.Paragraph);
        }
Beispiel #2
0
        public void CanCreateDocumentItemWithPragraph()
        {
            var          p    = new TestParagraph();
            DocumentItem item = new DocumentItem(p);

            Assert.AreEqual(p, item.Paragraph);
        }
Beispiel #3
0
        public void ReturnNullIfItemDoesntHaveImage()
        {
            var          p    = new TestParagraph();
            DocumentItem item = new DocumentItem(p);

            Assert.AreEqual(p, item.Paragraph);
            Assert.AreEqual(null, item.Image);
        }