public void CanAddRemoveFactoryCommandConverters()
        {
            var services = new ServiceCollection();
            IImageSharpBuilder builder = services.AddImageSharp();

            builder.AddConverter(_ => new MockCommandConverter());
            Assert.Single(services, IsService <ICommandConverter, MockCommandConverter>);
            Assert.Single(services, IsServiceImplementationFactory <ICommandConverter, MockCommandConverter>);

            builder.RemoveConverter <MockCommandConverter>();
            Assert.DoesNotContain(services, IsService <ICommandConverter, MockCommandConverter>);
        }
        public void CanAddRemoveCommandConverters()
        {
            var services = new ServiceCollection();

            IImageSharpBuilder builder = services.AddImageSharp()
                                         .AddConverter <MockCommandConverter>();

            Assert.Contains(services, x => x.ImplementationType == typeof(MockCommandConverter));

            builder.RemoveConverter <MockCommandConverter>();

            Assert.DoesNotContain(services, x => x.ImplementationType == typeof(MockCommandConverter));
        }