示例#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());
        }
示例#2
0
        public void CommandAttribute_ViewModelTest_FluentAPI()
        {
            var viewModel = new CommandAttributeViewModel_FluentAPI();

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