Skip to content

Commit 08cbea2

Browse files
committed
Run MySql.Data tests under net6.0.
.NET 6.0 is where active development on ADO.NET is happening, and is worth testing for implementation differences.
1 parent c3a362e commit 08cbea2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/IntegrationTests/ClientFactoryTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public void CreateDataAdapter()
4646
[Fact]
4747
public void DbProviderFactoriesGetFactory()
4848
{
49-
#if !NET462 && !NET472
50-
DbProviderFactories.RegisterFactory("MySqlConnector", MySqlConnectorFactory.Instance);
51-
#endif
5249
#if MYSQL_DATA
5350
var providerInvariantName = "MySql.Data.MySqlClient";
5451
#else
5552
var providerInvariantName = "MySqlConnector";
53+
#endif
54+
#if !NET462 && !NET472
55+
DbProviderFactories.RegisterFactory(providerInvariantName, MySqlConnectorFactory.Instance);
5656
#endif
5757
var factory = DbProviderFactories.GetFactory(providerInvariantName);
5858
Assert.NotNull(factory);

tests/IntegrationTests/IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<PropertyGroup Condition=" '$(Configuration)' == 'MySqlData' ">
9-
<TargetFrameworks>net472</TargetFrameworks>
9+
<TargetFrameworks>net6.0</TargetFrameworks>
1010
<DefineConstants>MYSQL_DATA</DefineConstants>
1111
</PropertyGroup>
1212

0 commit comments

Comments
 (0)