Skip to content

Commit 540e93f

Browse files
committed
Add unit test for context switch default value.
1 parent 393f175 commit 540e93f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Microsoft.Data.SqlClient/tests/FunctionalTests/LocalAppContextSwitchesTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using System;
56
using System.Reflection;
67
using Xunit;
78

@@ -15,6 +16,8 @@ public class LocalAppContextSwitchesTests
1516
[InlineData("MakeReadAsyncBlocking", false)]
1617
[InlineData("UseMinimumLoginTimeout", true)]
1718
[InlineData("UseCompatibilityProcessSni", false)]
19+
[InlineData("UseCompatibilityAsyncBehaviour", false)]
20+
[InlineData("UseConnectionPoolV2", false)]
1821
public void DefaultSwitchValue(string property, bool expectedDefaultValue)
1922
{
2023
var switchesType = typeof(SqlCommand).Assembly.GetType("Microsoft.Data.SqlClient.LocalAppContextSwitches");

0 commit comments

Comments
 (0)