Fix SettingsViewModelTest.CannotAddChildElementToFormatElement.

This commit is contained in:
Daniel Kraus
2015-08-03 06:32:05 +02:00
parent 14b09f89c5
commit db8f88c563
5 changed files with 26 additions and 11 deletions

View File

@ -58,7 +58,7 @@ namespace Tests.ViewModels
parent.IsSelected = true;
Assert.IsTrue(_settingsVM.AddChildElementCommand.CanExecute(null));
FormatElementViewModel child = new FormatElementViewModel(new Items());
parent.AddChildElement(child);
_settingsVM.AddChildElementViewModel(parent, child);
parent.IsSelected = false;
child.IsSelected = true;
Assert.IsFalse(_settingsVM.AddChildElementCommand.CanExecute(null));