Skip to content

Commit 80b3f71

Browse files
committed
Add tests for Microsoft.Data.SQLite v7.x.
1 parent df06e48 commit 80b3f71

12 files changed

+144
-0
lines changed

AdoNetApiTest.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSqlite6.Tests", "t
4747
EndProject
4848
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSqlClient4.Tests", "tests\MicrosoftSqlClient4.Tests\MicrosoftSqlClient4.Tests.csproj", "{35CA13FA-B483-42FB-8759-ECD18196E890}"
4949
EndProject
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSqlite7.Tests", "tests\MicrosoftSqlite7.Tests\MicrosoftSqlite7.Tests.csproj", "{F3C88899-1392-4EB3-94AC-9C1B00F4B545}"
51+
EndProject
5052
Global
5153
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5254
Debug|Any CPU = Debug|Any CPU
@@ -141,6 +143,10 @@ Global
141143
{35CA13FA-B483-42FB-8759-ECD18196E890}.Debug|Any CPU.Build.0 = Debug|Any CPU
142144
{35CA13FA-B483-42FB-8759-ECD18196E890}.Release|Any CPU.ActiveCfg = Release|Any CPU
143145
{35CA13FA-B483-42FB-8759-ECD18196E890}.Release|Any CPU.Build.0 = Release|Any CPU
146+
{F3C88899-1392-4EB3-94AC-9C1B00F4B545}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
147+
{F3C88899-1392-4EB3-94AC-9C1B00F4B545}.Debug|Any CPU.Build.0 = Debug|Any CPU
148+
{F3C88899-1392-4EB3-94AC-9C1B00F4B545}.Release|Any CPU.ActiveCfg = Release|Any CPU
149+
{F3C88899-1392-4EB3-94AC-9C1B00F4B545}.Release|Any CPU.Build.0 = Release|Any CPU
144150
EndGlobalSection
145151
GlobalSection(SolutionProperties) = preSolution
146152
HideSolutionNode = FALSE
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.Data.SQLite" Version="7.*" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
10+
<PackageReference Include="xunit" Version="2.4.2" />
11+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\..\src\AdoNet.Databases\AdoNet.Databases.csproj" />
16+
<ProjectReference Include="..\..\src\AdoNet.Specification.Tests\AdoNet.Specification.Tests.csproj" />
17+
</ItemGroup>
18+
19+
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7CommandTests : CommandTestBase<MicrosoftSqlite7DbFactoryFixture>
6+
{
7+
public MicrosoftSqlite7CommandTests(MicrosoftSqlite7DbFactoryFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7ConnectionStringBuilderTests : ConnectionStringTestBase<MicrosoftSqlite7DbFactoryFixture>
6+
{
7+
public MicrosoftSqlite7ConnectionStringBuilderTests(MicrosoftSqlite7DbFactoryFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7ConnectionTests : ConnectionTestBase<MicrosoftSqlite7DbFactoryFixture>
6+
{
7+
public MicrosoftSqlite7ConnectionTests(MicrosoftSqlite7DbFactoryFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7DataReaderTests : DataReaderTestBase<MicrosoftSqlite7SelectValueFixture>
6+
{
7+
public MicrosoftSqlite7DataReaderTests(MicrosoftSqlite7SelectValueFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
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 MicrosoftSqlite7.Tests;
6+
7+
public class MicrosoftSqlite7DbFactoryFixture : IDbFactoryFixture
8+
{
9+
public DbProviderFactory Factory => SqliteFactory.Instance;
10+
public string ConnectionString => "data source=temp.db";
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7DbProviderFactoryTests : DbProviderFactoryTestBase<MicrosoftSqlite7DbFactoryFixture>
6+
{
7+
public MicrosoftSqlite7DbProviderFactoryTests(MicrosoftSqlite7DbFactoryFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public class MicrosoftSqlite7GetValueConversionTests : GetValueConversionTestBase<MicrosoftSqlite7SelectValueFixture>
6+
{
7+
public MicrosoftSqlite7GetValueConversionTests(MicrosoftSqlite7SelectValueFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using AdoNet.Specification.Tests;
2+
3+
namespace MicrosoftSqlite7.Tests;
4+
5+
public sealed class MicrosoftSqlite7ParameterTests : ParameterTestBase<MicrosoftSqlite7DbFactoryFixture>
6+
{
7+
public MicrosoftSqlite7ParameterTests(MicrosoftSqlite7DbFactoryFixture fixture)
8+
: base(fixture)
9+
{
10+
}
11+
}

0 commit comments

Comments
 (0)