예제 #1
0
        public void AddedNodeIsSelected()
        {
            WaitLoad();

            _frame.RunDispatcher();

            var firstPath   = _paths.AllPathIds.Any() ? _paths.AllPathIds.First() : -1;
            var pathStrings = _paths.GetPathStrings(firstPath);

            var libraryFileNode = new LibraryFileNode(_frame.Dispatcher, _eventAggregator)
            {
                Path = pathStrings
            };

            _view.AddNode(libraryFileNode);

            Assert.That(_view.SelectedItem, Is.SameAs(libraryFileNode));
        }