コード例 #1
0
        public void Collection_ToContainer()
        {
            // Arrange
            var collection = new DocumentCollection
            {
                ItemType = PlainText.MIME_TYPE,
                Items    = new PlainText[]
                {
                    new PlainText
                    {
                        Text = "Text 1"
                    },
                    new PlainText
                    {
                        Text = "Text 2"
                    },
                    new PlainText
                    {
                        Text = "Text 3"
                    }
                }
            };
            // Act
            var container = collection.ToDocumentContainer();

            // Assert
            container.Value.ShouldBe(collection);
        }