Skip to content

Commit 9b55f4c

Browse files
committed
Replace LocalAppContextSwitchesTests
1 parent f3cf6e6 commit 9b55f4c

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

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

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)