@@ -12,10 +12,6 @@ namespace NUnit.VisualStudio.TestAdapter.Tests.Acceptance;
12
12
13
13
public class Frameworks
14
14
{
15
- public const string NetCoreApp31 = "netcoreapp3.1" ;
16
- public const string Net50 = "net5.0" ;
17
- public const string Net60 = "net6.0" ;
18
- public const string Net70 = "net7.0" ;
19
15
public const string Net80 = "net8.0" ;
20
16
}
21
17
@@ -32,18 +28,11 @@ public abstract class AcceptanceTests
32
28
protected static IEnumerable < string > TargetFrameworks =>
33
29
[
34
30
LowestNetfxTarget ,
35
- Frameworks . NetCoreApp31
36
- ] ;
37
-
38
- protected static IEnumerable < string > DotNetCliTargetFrameworks =>
39
- [
40
- Frameworks . NetCoreApp31 ,
41
- Frameworks . Net60 ,
31
+ Frameworks . Net80
42
32
] ;
43
33
44
34
protected static IEnumerable < string > ModernDotNetCliTargetFrameworks =>
45
35
[
46
- Frameworks . Net60 ,
47
36
Frameworks . Net80
48
37
] ;
49
38
@@ -52,7 +41,7 @@ public abstract class AcceptanceTests
52
41
53
42
public class MultiFrameworkSource
54
43
{
55
- public IEnumerable < string > Frameworks { get ; set ; } = DotNetCliTargetFrameworks ;
44
+ public IEnumerable < string > Frameworks { get ; set ; } = ModernDotNetCliTargetFrameworks ;
56
45
public string NUnitVersion { get ; set ; } = NUnit3 ;
57
46
58
47
public static IEnumerable < MultiFrameworkSource > LegacyDotNetFrameworks => [ new ( ) ] ;
@@ -85,37 +74,22 @@ public class SingleFrameworkSource
85
74
86
75
public static IEnumerable < SingleFrameworkSource > NetFxFramework => [ new ( ) ] ;
87
76
88
- public static IEnumerable < SingleFrameworkSource > LegacyDotNetFramework =>
89
- [
90
- new ( )
91
- {
92
- Framework = Frameworks . NetCoreApp31 ,
93
- NUnitVersion = NUnit3
94
- } ,
95
- ] ;
96
-
97
77
public static IEnumerable < SingleFrameworkSource > ModernDotNetFramework =>
98
78
[
99
- new ( )
100
- {
101
- Framework = Frameworks . Net60 ,
102
- NUnitVersion = NUnit4
103
- } ,
104
79
new ( )
105
80
{
106
81
Framework = Frameworks . Net80 ,
107
82
NUnitVersion = NUnit4
108
83
}
109
84
] ;
110
85
111
- public static IEnumerable < SingleFrameworkSource > AllFrameworks => NetFxFramework . Concat ( LegacyDotNetFramework ) . Concat ( ModernDotNetFramework ) ;
112
- public static IEnumerable < SingleFrameworkSource > AllFrameworksExceptNetFx => LegacyDotNetFramework . Concat ( ModernDotNetFramework ) ;
86
+ public static IEnumerable < SingleFrameworkSource > AllFrameworks => NetFxFramework . Concat ( ModernDotNetFramework ) ;
87
+ public static IEnumerable < SingleFrameworkSource > AllFrameworksExceptNetFx => ModernDotNetFramework ;
113
88
}
114
89
115
90
protected string NUnitVersion ( string targetFramework ) =>
116
91
targetFramework switch
117
92
{
118
- Frameworks . NetCoreApp31 => NUnit3 ,
119
93
_ => NUnit4 ,
120
94
} ;
121
95
0 commit comments