// Constructors internal ProviderInfo( string providerName, Version storageVersion, ProviderFeatures providerFeatures, int maxIdentifierLength, string constantPrimaryIndexName, string defaultDatabase, string defaultSchema, IEnumerable <Type> supportedTypes, int maxQueryParameterCount) { ProviderName = providerName; StorageVersion = storageVersion; ProviderFeatures = providerFeatures; MaxIdentifierLength = maxIdentifierLength; ConstantPrimaryIndexName = constantPrimaryIndexName; DefaultDatabase = defaultDatabase; DefaultSchema = defaultSchema; SupportedTypes = new ReadOnlyHashSet <Type>(new HashSet <Type>(supportedTypes)); MaxQueryParameterCount = maxQueryParameterCount; }
public static void AnyFeatureNotSupported(ProviderFeatures disallowedFeatures) { var info = StorageProviderInfo.Instance; if (!info.CheckAnyFeatureNotSupported(disallowedFeatures)) { IgnoreMe("This test requires storage that does not support at least one of the '{0}' features", disallowedFeatures); } }
public static void AnyFeatureSupported(ProviderFeatures requiredFeatures) { var info = StorageProviderInfo.Instance; if (!info.CheckAnyFeatureSupported(requiredFeatures)) { IgnoreMe("This test requires storage that supports at least one of the '{0}' features", requiredFeatures); } }
public static void AllFeaturesNotSupported(ProviderFeatures disallowedFeatures) { var info = StorageProviderInfo.Instance; if (!info.CheckAllFeaturesNotSupported(disallowedFeatures)) { IgnoreMe("This test requires storage that does not support '{0}'", disallowedFeatures); } }
public static void AllFeaturesSupported(ProviderFeatures requiredFeatures) { var info = StorageProviderInfo.Instance; if (!info.CheckAllFeaturesSupported(requiredFeatures)) { IgnoreMe("This test requires storage that supports '{0}'", requiredFeatures); } }
/// <summary> /// Determines whether the specified features are supported. /// </summary> /// <param name="required">The required feature set.</param> public bool Supports(ProviderFeatures required) { return((ProviderFeatures & required) == required); }
public bool CheckAnyFeatureNotSupported(ProviderFeatures disallowedFeatures) { return((Info.ProviderFeatures & disallowedFeatures) != disallowedFeatures); }
public bool CheckAnyFeatureSupported(ProviderFeatures requiredFeatures) { return((Info.ProviderFeatures & requiredFeatures) != 0); }
public bool CheckAllFeaturesNotSupported(ProviderFeatures disallowedFeatures) { return((Info.ProviderFeatures & disallowedFeatures) == 0); }
public bool CheckAllFeaturesSupported(ProviderFeatures requiredFeatures) { return((Info.ProviderFeatures & requiredFeatures) == requiredFeatures); }