예제 #1
0
        // 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;
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
        public static void AllFeaturesSupported(ProviderFeatures requiredFeatures)
        {
            var info = StorageProviderInfo.Instance;

            if (!info.CheckAllFeaturesSupported(requiredFeatures))
            {
                IgnoreMe("This test requires storage that supports '{0}'", requiredFeatures);
            }
        }
예제 #6
0
 /// <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);
 }