public void EnumerateServiceConfigurators_AssemblyIsValid_ResultsAreExpected(
            Assembly assembly,
            ImmutableArray <Type> configuratorTypes)
        {
            var results = ServiceConfiguratorAttribute.EnumerateServiceConfigurators(
                assembly);

            results.Select(result => result.GetType()).ShouldBeSetEqualTo(configuratorTypes);
        }
        public void EnumerateServiceConfigurators_AssemblyIsNotValid_ThrowsException(
            Assembly assembly,
            Type invalidConfiguratorType)
        {
            var result = Should.Throw <InvalidOperationException>(() =>
            {
                _ = ServiceConfiguratorAttribute.EnumerateServiceConfigurators(
                    assembly)
                    .ToArray();
            });

            result.Message.ShouldContain(invalidConfiguratorType.ToString());
        }