public void Test(PropertyInfo property, TsZeroType expected) { var handler = NullabilityHandlerResolver.FromConfig(Config); var actual = handler.GetTsNullability(property); Assert.That(actual, Is.EqualTo(expected)); }
public TypeMapping( ITypeConverter customTypeConverter = null, IEnumerable <ITypeDescriptorProvider> typeDescriptorProviders = null, bool appendIPrefix = false, TypeMappingConfig config = default) { _customTypeConverter = customTypeConverter; _typeDescriptorProviders = typeDescriptorProviders?.ToArray() ?? Array.Empty <ITypeDescriptorProvider>(); _appendIPrefix = appendIPrefix; _config = config; _nullabilityHandler = NullabilityHandlerResolver.FromConfig(config); }