public void WhenNodeIsNull_NoCommandHandlerIsReturned()
        {
            var extender = new ProjectNodeExtender(GetJoinableTaskContext(), IServiceProviderFactory.ImplementGetService(t => null));

            var commandHandler = extender.ProvideCommandHandler(null !);

            Assert.Null(commandHandler);
        }
        public void WhenNodeRepresentsAManagedProject_ACommandHandlerIsReturned()
        {
            var extender = new ProjectNodeExtender(GetJoinableTaskContext(), IServiceProviderFactory.ImplementGetService(t => null));
            var node     = WorkspaceVisualNodeBaseFactory.Implement(
                selectionKind: CloudEnvironment.SolutionViewProjectGuid,
                nodeMoniker: "Test.csproj",
                selectionMoniker: "Test.csproj");

            var commandHandler = extender.ProvideCommandHandler(node);

            Assert.NotNull(commandHandler);
        }
        public void WhenSelectionKindIsWrong_NoCommandHandlerIsReturned()
        {
            var extender = new ProjectNodeExtender(GetJoinableTaskContext(), IServiceProviderFactory.ImplementGetService(t => null));
            var node     = WorkspaceVisualNodeBaseFactory.Implement(
                selectionKind: Guid.Parse("{95D7E5E9-08FA-40FB-9010-2CCEEC6D54C1}"),
                nodeMoniker: "Test.csproj",
                selectionMoniker: "Test.csproj");

            var commandHandler = extender.ProvideCommandHandler(node);

            Assert.Null(commandHandler);
        }