public CompositeCommandResolver CreateCommandResolver()
        {
            var defaultCommandResolverPolicy = new DefaultCommandResolverPolicy();
            var compositeCommandResolver     = defaultCommandResolverPolicy.CreateCommandResolver();
            var packagedCommandSpecFactory   = new PackagedCommandSpecFactory();

            compositeCommandResolver.AddCommandResolver(new ProjectToolsCommandResolver(packagedCommandSpecFactory));

            return(compositeCommandResolver);
        }
        public void It_contains_resolvers_in_the_right_order()
        {
            var defaultCommandResolver = DefaultCommandResolverPolicy.Create();

            var resolvers = defaultCommandResolver.OrderedCommandResolvers;

            resolvers.Should().HaveCount(4);

            resolvers.Select(r => r.GetType())
            .Should()
            .ContainInOrder(
                new [] {
                typeof(RootedCommandResolver),
                typeof(ProjectToolsCommandResolver),
                typeof(AppBaseCommandResolver),
                typeof(PathCommandResolver)
            });
        }