public void Bind_ViewModel_ModelIsBound()
        {
            var model     = new ModelStub("Test", 2);
            var viewModel = new ViewModelStub();

            viewModel.Bind(model);

            _collectionViewModel.Bind(viewModel);

            Assert.True(_collectionViewModel.IsBound(model));
        }
        public void Bind_ViewModel_AddedToChildrenOnce()
        {
            var model     = new ModelStub("Test", 2);
            var viewModel = new ViewModelStub();

            viewModel.Bind(model);

            _collectionViewModel.Bind(viewModel);

            var child = _collectionViewModel.Children.Single(vm => Equals(vm.ActiveModel, model));

            Assert.NotNull(child);
        }