Beispiel #1
0
        public void BindCommandWithoutParameter() => AssertExperimental(() =>
        {
            var textCell = new TextCell();
            string path  = nameof(viewModel.Command);

            textCell.BindCommand(path, parameterPath: null);

            BindingHelpers.AssertBindingExists(textCell, TextCell.CommandProperty, path);
            Assert.That(BindingHelpers.GetBinding(textCell, TextCell.CommandParameterProperty), Is.Null);
        });