Path: redb/redb.Tests.Integration/Tests/Sqlite/SqliteNativeExtensionVersionTests.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Tests/Sqlite/SqliteNativeExtensionVersionTests.cs ---- using redb.Core; using redb.SQLite.Sql; using redb.Tests.Integration.Fixtures; namespace redb.Tests.Integration.Tests.Sqlite; [Collection("Sqlite")] public class SqliteNativeExtensionVersionTests { private readonly IRedbService _redb; public SqliteNativeExtensionVersionTests(SqliteFixture fixture) => _redb = fixture.Redb; /// /// The extension the tests load reports the version the dialect requires. A stale build next to the tests is /// caught here by name, not by a query that answers in an old shape; and the dialect names the function the /// initialization gate asks, as the PostgreSQL and SQL Server dialects do. /// [Fact] public async Task TheLoadedExtension_ReportsTheRequiredVersion() { var dialect = new SqliteDialect(); dialect.Query_PvtModuleVersionFunction().Should().Be("pvt_module_version"); dialect.Query_PvtRequiredVersion().Should().NotBeNullOrEmpty(); var deployed = await _redb.Context.ExecuteScalarAsync("SELECT pvt_module_version()"); deployed.Should().Be(dialect.Query_PvtRequiredVersion()); } }