// Copyright (c) Microsoft. All rights reserved. using VectorData.ConformanceTests.Xunit; namespace CosmosMongoDB.ConformanceTests.Support; /// /// Checks whether the sqlite_vec extension is properly installed, and skips the test(s) otherwise. /// [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)] public sealed class CosmosConnectionStringRequiredAttribute : Attribute, ITestCondition { public ValueTask IsMetAsync() => new(CosmosMongoTestEnvironment.IsConnectionStringDefined); public string Skip { get; set; } = "The Cosmos connection string hasn't been configured (CosmosMongo:ConnectionString)."; public string SkipReason => this.Skip; }