public void CanExecute_WhenCanWebEditReturnsFalse_ReturnsFalse()
        {
            // Arrange
            var item = MasterFakesFactory.CreateFakeItem();
            var access = Substitute.For<IPageModeAccess>();
            access.CanWebEdit().Returns(false);
            var runner = Substitute.For<IPipelineRunner>();
            var checker = new SelectBaseLayoutContextChecker(access, runner);

            // Act
            var result = checker.CanExecute(item);

            // Assert
            Assert.False(result);
        }
        public void CanExecute_WhenInitialChecksPassAndPipelineReturnsWithNoBaseLayoutItems_ReturnsFalse()
        {
            // Arrange
            var item = MasterFakesFactory.CreateFakeItem();
            var access = Substitute.For<IPageModeAccess>();
            access.CanWebEdit().Returns(true);
            access.CanDesignItem(Arg.Any<Item>()).Returns(true);
            var runner = Substitute.For<IPipelineRunner>();
            var checker = new SelectBaseLayoutContextChecker(access, runner);

            // Act
            var result = checker.CanExecute(item);

            // Assert
            Assert.False(result);
        }