public void CheckAssignedCommandIsGenericCommandForMethodWithParameter() { var viewModel = new ViewModelCommandWithParameter(); viewModel.ShowChildCommand.Should().Not.Be.Null(); viewModel.ShowChildCommand.Should().Be.OfType<AsyncCommand<string>>(); }
public void CheckAssignedCommandIsGenericCommandForMethodWithParameter() { var viewModel = new ViewModelCommandWithParameter(); viewModel.ShowChildCommand.Should().NotBeNull(); viewModel.ShowChildCommand.Should().BeOfType <AsyncRefreshCommand <string> >(); }
public void UpdateViewModelPropertiesAndCheckIfCommandCanExecuteWasUpdated() { var viewModel = new ViewModelCommandWithParameter(); viewModel.CanShowChild(null).Should().BeFalse(); viewModel.AllowCommand = true; viewModel.CanShowChild(null).Should().BeTrue(); }