Esempio n. 1
0
        public void CommandAttribute_ViewModelTest_FluentAPI()
        {
            var viewModel = new CommandAttributeViewModel_FluentAPI();

            CommandAttribute_ViewModelTestCore(viewModel, () => viewModel.MethodWithCanExecute(), () => viewModel.MethodWithCustomCanExecute());
            Assert.AreSame(((ICustomTypeDescriptor)viewModel).GetProperties(), ((ICustomTypeDescriptor)viewModel).GetProperties());
        }
Esempio n. 2
0
        public void CommandAttribute_ViewModelTest_FluentAPI()
        {
            var viewModel = new CommandAttributeViewModel_FluentAPI();

            CommandAttribute_ViewModelTestCore(viewModel, () => viewModel.MethodWithCanExecute(), () => viewModel.MethodWithCustomCanExecute());
        }