public VerticalBlockCollectionView(DocumentEditorContextView root, RootBlockCollection blockCollection)
        {
            _root                = root;
            _blockCollection     = blockCollection;
            _blockCollection.Tag = this;

            foreach (var block in _blockCollection.Children)
            {
                Children.Add(_root.CreateViewFor(block));
            }
        }
        public void Verify_Serialization()
        {
            var collection = new RootBlockCollection();

            collection.Append(CreateBlock());
            collection.Append(CreateBlock());
            collection.Append(CreateBlock());

            var descriptorsLookup = new DescriptorsLookup(RootBlockCollection.Descriptor,
                                                          ParagraphBlock.Descriptor);

            // Act
            SerializationHelpers.VerifyDeserialization(collection, descriptorsLookup);
        }
 /// <summary> Constructor. </summary>
 /// <param name="collection"> The collection that should be used as the root. </param>
 private DocumentOwner(RootBlockCollection collection)
 {
     Root = collection;
 }