8
8
using Microsoft . VisualStudio . TestPlatform . ObjectModel ;
9
9
using Microsoft . VisualStudio . TestTools . UnitTesting ;
10
10
11
- #nullable disable
12
-
13
11
namespace Microsoft . TestPlatform . ObjectModel . PlatformTests ;
14
12
15
13
[ TestClass ]
16
14
public class DiaSessionTests : IntegrationTestBase
17
15
{
16
+ #if NETFRAMEWORK
18
17
private const string NET451 = "net451" ;
18
+ #else
19
19
private const string NETCOREAPP21 = "netcoreapp2.1" ;
20
+ #endif
20
21
21
- public static string GetAndSetTargetFrameWork ( IntegrationTestEnvironment testEnvironment )
22
+ public static string ? GetAndSetTargetFrameWork ( IntegrationTestEnvironment testEnvironment )
22
23
{
23
24
var currentTargetFrameWork = testEnvironment . TargetFramework ;
24
25
testEnvironment . TargetFramework =
@@ -125,7 +126,7 @@ public void DiaSessionPerfTest()
125
126
_testEnvironment . TargetFramework = currentTargetFrameWork ;
126
127
}
127
128
128
- private void ValidateLineNumbers ( int min , int max )
129
+ private static void ValidateLineNumbers ( int min , int max )
129
130
{
130
131
// Release builds optimize code, hence min line numbers are different.
131
132
if ( IntegrationTestEnvironment . BuildConfiguration . StartsWith ( "release" , StringComparison . OrdinalIgnoreCase ) )
@@ -149,7 +150,7 @@ private void ValidateLineNumbers(int min, int max)
149
150
}
150
151
}
151
152
152
- private void ValidateMinLineNumber ( int expected , int actual )
153
+ private static void ValidateMinLineNumber ( int expected , int actual )
153
154
{
154
155
// Release builds optimize code, hence min line numbers are different.
155
156
if ( IntegrationTestEnvironment . BuildConfiguration . StartsWith ( "release" , StringComparison . OrdinalIgnoreCase ) )
0 commit comments