File tree Expand file tree Collapse file tree 2 files changed +34
-34
lines changed
src/Microsoft.Data.SqlClient/tests
UnitTests/Microsoft/Data/SqlClient Expand file tree Collapse file tree 2 files changed +34
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+ // See the LICENSE file in the project root for more information.
4
+
5
+ using System ;
6
+ using Xunit ;
7
+
8
+ namespace Microsoft . Data . SqlClient . UnitTests
9
+ {
10
+ /// <summary>
11
+ /// Provides unit tests for verifying the default values of all SqlClient-specific AppContext switches.
12
+ /// </summary>
13
+ public class LocalAppContextSwitchesTest
14
+ {
15
+ /// <summary>
16
+ /// Tests the default values of every AppContext switch used by SqlClient.
17
+ /// </summary>
18
+ [ Fact ]
19
+ public void TestDefaultAppContextSwitchValues ( )
20
+ {
21
+ Assert . False ( LocalAppContextSwitches . LegacyRowVersionNullBehavior ) ;
22
+ Assert . False ( LocalAppContextSwitches . SuppressInsecureTlsWarning ) ;
23
+ Assert . False ( LocalAppContextSwitches . MakeReadAsyncBlocking ) ;
24
+ Assert . True ( LocalAppContextSwitches . UseMinimumLoginTimeout ) ;
25
+ Assert . True ( LocalAppContextSwitches . LegacyVarTimeZeroScaleBehaviour ) ;
26
+ Assert . False ( LocalAppContextSwitches . UseCompatibilityProcessSni ) ;
27
+ Assert . False ( LocalAppContextSwitches . UseCompatibilityAsyncBehaviour ) ;
28
+ Assert . False ( LocalAppContextSwitches . UseConnectionPoolV2 ) ;
29
+ #if NETFRAMEWORK
30
+ Assert . False ( LocalAppContextSwitches . DisableTnirByDefault ) ;
31
+ #endif
32
+ }
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments