Exemple #1
0
        public void GenerateUsedTypes(Type inputType, string[] exceptedTypes)
        {
            var typeMetadata = GetTypeMetadata(inputType);
            var metadata     = _generator.Generate(typeMetadata);

            Assert.Equal(exceptedTypes, metadata.OutputType.UsedTypes.Select(x => x.Name.Name));
        }
        protected virtual OutputType[] FilterImportingTypes([CanBeNull] OutputType[] types)
        {
            var result = types?.Where(ShouldBeImported)?.ToArray();

            return(result ?? System.Array.Empty <OutputType>());
        }