Skip to content

Commit 32d28f2

Browse files
committed
Add tests for Microsoft.Data.Sqlite v8.
1 parent 0aa2b73 commit 32d28f2

13 files changed

+124
-0
lines changed

AdoNetApiTest.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSqlite7.Tests", "t
5151
EndProject
5252
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Npgsql7.Tests", "tests\Npgsql7.Tests\Npgsql7.Tests.csproj", "{2DEADF63-7268-41E8-BFB5-F28DD8F9AEAC}"
5353
EndProject
54+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSqlite8.Tests", "tests\MicrosoftSqlite8.Tests\MicrosoftSqlite8.Tests.csproj", "{FA8BDF08-7841-4F8D-9085-D1EFC2A46A7E}"
55+
EndProject
5456
Global
5557
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5658
Debug|Any CPU = Debug|Any CPU
@@ -153,6 +155,10 @@ Global
153155
{2DEADF63-7268-41E8-BFB5-F28DD8F9AEAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
154156
{2DEADF63-7268-41E8-BFB5-F28DD8F9AEAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
155157
{2DEADF63-7268-41E8-BFB5-F28DD8F9AEAC}.Release|Any CPU.Build.0 = Release|Any CPU
158+
{FA8BDF08-7841-4F8D-9085-D1EFC2A46A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
159+
{FA8BDF08-7841-4F8D-9085-D1EFC2A46A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU
160+
{FA8BDF08-7841-4F8D-9085-D1EFC2A46A7E}.Release|Any CPU.ActiveCfg = Release|Any CPU
161+
{FA8BDF08-7841-4F8D-9085-D1EFC2A46A7E}.Release|Any CPU.Build.0 = Release|Any CPU
156162
EndGlobalSection
157163
GlobalSection(SolutionProperties) = preSolution
158164
HideSolutionNode = FALSE

azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ jobs:
172172
publishTestResults: false
173173
arguments: '--logger "trx;LogFileName=$(Build.ArtifactStagingDirectory)/MicrosoftSqlite7.Tests.trx"'
174174
continueOnError: true
175+
- task: DotNetCoreCLI@2
176+
inputs:
177+
command: 'test'
178+
workingDirectory: tests/MicrosoftSqlite8.Tests
179+
publishTestResults: false
180+
arguments: '--logger "trx;LogFileName=$(Build.ArtifactStagingDirectory)/MicrosoftSqlite8.Tests.trx"'
181+
continueOnError: true
175182
- task: DotNetCoreCLI@2
176183
inputs:
177184
command: 'test'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.Data.SQLite" Version="8.*" />
9+
</ItemGroup>
10+
11+
<ItemGroup>
12+
<ProjectReference Include="..\..\src\AdoNet.Databases\AdoNet.Databases.csproj" />
13+
<ProjectReference Include="..\..\src\AdoNet.Specification.Tests\AdoNet.Specification.Tests.csproj" />
14+
</ItemGroup>
15+
16+
</Project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public sealed class MicrosoftSqlite8CommandTests(MicrosoftSqlite8DbFactoryFixture fixture)
6+
: CommandTestBase<MicrosoftSqlite8DbFactoryFixture>(fixture)
7+
{
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public sealed class MicrosoftSqlite8ConnectionStringBuilderTests(MicrosoftSqlite8DbFactoryFixture fixture)
6+
: ConnectionStringTestBase<MicrosoftSqlite8DbFactoryFixture>(fixture)
7+
{
8+
}
9+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public sealed class MicrosoftSqlite8ConnectionTests(MicrosoftSqlite8DbFactoryFixture fixture)
6+
: ConnectionTestBase<MicrosoftSqlite8DbFactoryFixture>(fixture)
7+
{
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public sealed class MicrosoftSqlite8DataReaderTests(MicrosoftSqlite8SelectValueFixture fixture)
6+
: DataReaderTestBase<MicrosoftSqlite8SelectValueFixture>(fixture)
7+
{
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Data.Common;
2+
using AdoNet.Specification.Tests;
3+
using Microsoft.Data.Sqlite;
4+
5+
namespace MicrosoftSqlite8.Tests;
6+
7+
public class MicrosoftSqlite8DbFactoryFixture : IDbFactoryFixture
8+
{
9+
public DbProviderFactory Factory => SqliteFactory.Instance;
10+
public string ConnectionString => "data source=temp.db";
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public sealed class MicrosoftSqlite8DbProviderFactoryTests(MicrosoftSqlite8DbFactoryFixture fixture)
6+
: DbProviderFactoryTestBase<MicrosoftSqlite8DbFactoryFixture>(fixture)
7+
{
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite8.Tests;
4+
5+
public class MicrosoftSqlite8GetValueConversionTests(MicrosoftSqlite8SelectValueFixture fixture)
6+
: GetValueConversionTestBase<MicrosoftSqlite8SelectValueFixture>(fixture)
7+
{
8+
}

0 commit comments

Comments
 (0)