Clean up ROSLYN_XXX requirements
This commit is contained in:
Родитель
0af2f27326
Коммит
9823e508f2
|
@ -47,7 +47,7 @@ public sealed class TheoryDataRowArgumentsShouldBeSerializableTests
|
|||
[InlineData("typeof(TheoryDataRow)", "Type")]
|
||||
[InlineData("ConsoleColor.Red", "ConsoleColor")]
|
||||
[InlineData("new Dictionary<string, List<string>>()", "Dictionary<string, List<string>>")]
|
||||
#if NET6_0_OR_GREATER && ROSLYN_4_4_OR_GREATER
|
||||
#if NET6_0_OR_GREATER
|
||||
[InlineData("DateOnly.MinValue", "DateOnly")]
|
||||
[InlineData("TimeOnly.MinValue", "TimeOnly")]
|
||||
#endif
|
||||
|
|
|
@ -169,7 +169,7 @@ public class TheoryDataTypeArgumentsShouldBeSerializableTests
|
|||
[MemberData(nameof(TheoryDataMembers), "SerializableEnumeration")]
|
||||
[MemberData(nameof(TheoryDataMembers), "SerializableEnumeration?")]
|
||||
[MemberData(nameof(TheoryDataMembers), "Dictionary<string, List<string>>")]
|
||||
#if NET6_0_OR_GREATER && ROSLYN_4_4_OR_GREATER
|
||||
#if NET6_0_OR_GREATER
|
||||
[MemberData(nameof(TheoryDataMembers), "DateOnly")]
|
||||
[MemberData(nameof(TheoryDataMembers), "DateOnly[]")]
|
||||
[MemberData(nameof(TheoryDataMembers), "DateOnly?")]
|
||||
|
|
|
@ -9,7 +9,7 @@ public class AssertIsTypeShouldUseGenericOverloadTypeTests
|
|||
{
|
||||
public class StaticAbstractInterfaceMethods
|
||||
{
|
||||
#if ROSLYN_4_4_OR_GREATER // Static abstract methods are only supported on .NET with C# 11
|
||||
#if ROSLYN_4_4_OR_GREATER // C# 11 is required for static abstract methods
|
||||
|
||||
const string methodCode = /* lang=c#-test */ "static abstract void Method();";
|
||||
const string codeTemplate = /* lang=c#-test */ """
|
||||
|
|
|
@ -137,7 +137,7 @@ public class SetEqualityAnalyzerTests
|
|||
await Verify.VerifyAnalyzer(LanguageVersion.CSharp7, [code, customSetAndComparer], expected);
|
||||
}
|
||||
|
||||
#if ROSLYN_4_4_OR_GREATER // No C# 10 in Roslyn 3.11, so no local functions
|
||||
#if ROSLYN_4_4_OR_GREATER // C# 10 is required for local functions
|
||||
|
||||
public static MatrixTheoryData<string, string, string, string> ComparerFunctionData() =>
|
||||
new(
|
||||
|
|
|
@ -151,7 +151,7 @@ public class AssertThrowsShouldNotBeUsedForAsyncThrowsCheckFixerTests
|
|||
await VerifyCodeFix(beforeMethod, afterMethod);
|
||||
}
|
||||
|
||||
#if ROSLYN_4_4_OR_GREATER // No C# 10 in Roslyn 3.11, so no anonymous lambda types
|
||||
#if ROSLYN_4_4_OR_GREATER // C# 10 is required for anonymous lambda types
|
||||
|
||||
[Theory]
|
||||
[MemberData(nameof(Assertions))]
|
||||
|
|
Загрузка…
Ссылка в новой задаче