public void ModifySelectedItem_GivenNull_ReturnsNull()
        {
            var test = new AllowNullSelectionPolicy();

            Assert.Null(test.ModifySelectedItem(new Mock <ISingleSelector <object> >().Object, null));
        }
 public void ModifySelectedItem_GivenItem_ReturnsItem()
 {
     var test = new AllowNullSelectionPolicy();
     var item = new object();
     Assert.Same(item, test.ModifySelectedItem(new Mock<ISingleSelector<object>>().Object, item));
 }
 public void ModifySelectedItem_GivenNull_ReturnsNull()
 {
     var test = new AllowNullSelectionPolicy();
     Assert.Null(test.ModifySelectedItem(new Mock<ISingleSelector<object>>().Object, null));
 }
Exemple #4
0
 public OptionalProjectSelector(IProjectsFilter filter,
                                Func <IAction, IActionTreeNodePresenter> presenterFactory,
                                AllowNullSelectionPolicy selectionPolicy)
     : base(filter.Actions, presenterFactory, selectionPolicy)
 {
 }