public void When_binding_a_form_to_a_tree_view()
{
var binder = new Binder();
var form = new PostWithOptionsForm();
var post = NeededObjectsFactory.CreatePost();
var comments = NeededObjectsFactory.GenerateComments();
post.Comments.AddRange(comments);
binder.Bind(post, form);
post = new Post();
binder.Bind(form, post);
Assert.That(post.Comments.Count, Is.EqualTo(2));
Assert.That(post.Comments.GetCommentByAuthor("Tom").Comments.Count, Is.EqualTo(1));
Assert.That(post.Comments.GetCommentByAuthor("Tom").Comments[0].Comments.Count, Is.EqualTo(1));
Assert.That(post.Comments.GetCommentByAuthor("Sam").Comments.Count, Is.EqualTo(1));
}