Skip to content

Commit b9fc0d6

Browse files
authored
Merge branch 'main' into data-serialization
2 parents 987325a + dd0ac32 commit b9fc0d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+625
-533
lines changed

Directory.Packages.props

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<MicrosoftBuildVersion>17.11.4</MicrosoftBuildVersion>
99
<MicrosoftCodeAnalysisVersion>3.11.0</MicrosoftCodeAnalysisVersion>
1010
<MicrosoftCodeAnalysisVersionForTests>4.10.0</MicrosoftCodeAnalysisVersionForTests>
11-
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>3.11.0-beta1.24605.2</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
11+
<MicrosoftCodeAnalysisPublicApiAnalyzersVersion>3.11.0-beta1.24629.2</MicrosoftCodeAnalysisPublicApiAnalyzersVersion>
1212
<MicrosoftCodeAnalysisBannedApiAnalyzersVersion>$(MicrosoftCodeAnalysisPublicApiAnalyzersVersion)</MicrosoftCodeAnalysisBannedApiAnalyzersVersion>
1313
<!-- UWP and WinUI dependencies -->
1414
<MicrosoftNETCoreUniversalWindowsPlatformVersion>6.2.14</MicrosoftNETCoreUniversalWindowsPlatformVersion>
@@ -24,7 +24,7 @@
2424
</PropertyGroup>
2525
<PropertyGroup Label="Test dependencies">
2626
<MicrosoftCodeAnalysisAnalyzerTestingVersion>1.1.3-beta1.24423.1</MicrosoftCodeAnalysisAnalyzerTestingVersion>
27-
<MSTestVersion>3.8.0-preview.24623.10</MSTestVersion>
27+
<MSTestVersion>3.8.0-preview.24631.6</MSTestVersion>
2828
</PropertyGroup>
2929
<ItemGroup Label="Analyzers">
3030
<PackageVersion Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(MicrosoftCodeAnalysisBannedApiAnalyzersVersion)" />
@@ -46,7 +46,7 @@
4646
<PackageVersion Include="Microsoft.TestPlatform.ObjectModel" Version="$(MicrosoftNETTestSdkVersion)" />
4747
<PackageVersion Include="Microsoft.TestPlatform.TranslationLayer" Version="$(MicrosoftNETTestSdkVersion)" />
4848
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
49-
<PackageVersion Include="Polyfill" Version="7.5.0" />
49+
<PackageVersion Include="Polyfill" Version="7.9.1" />
5050
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
5151
<!-- CVE-2019-0820 -->
5252
<PackageVersion Include="System.Diagnostics.TextWriterTraceListener" Version="4.3.0" />

.github/codecov.yml codecov.yml

File renamed without changes.

eng/Version.Details.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<Uri>https://github.com/dotnet/arcade</Uri>
1414
<Sha>45d845e04c05fbe5da9838c454bbc3af1df6be81</Sha>
1515
</Dependency>
16-
<Dependency Name="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.0-preview.24620.2">
16+
<Dependency Name="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.0-preview.24630.1">
1717
<Uri>https://dev.azure.com/devdiv/DevDiv/_git/vs-code-coverage</Uri>
18-
<Sha>8ec298cce46b78be7e9ceb9e7403ad555b51f12b</Sha>
18+
<Sha>d4a113f856a31bcdcbf6e08da8928961c98bb497</Sha>
1919
</Dependency>
20-
<Dependency Name="MSTest.Engine" Version="1.0.0-alpha.24628.3">
20+
<Dependency Name="MSTest.Engine" Version="1.0.0-alpha.24630.3">
2121
<Uri>https://github.com/microsoft/testanywhere</Uri>
22-
<Sha>5475377201a11dba5ed12888525e88e2c86cf6f6</Sha>
22+
<Sha>1b35871af094500bb7bf28aa23b61d7135e1fca2</Sha>
2323
</Dependency>
2424
<!-- Intermediate is necessary for source build. -->
2525
<Dependency Name="Microsoft.SourceBuild.Intermediate.diagnostics" Version="9.0.0-preview.24566.1">
@@ -34,9 +34,9 @@
3434
<SourceBuild RepoName="source-build-externals" ManagedOnly="true" />
3535
</Dependency>
3636
<!-- Intermediate is necessary for source build. -->
37-
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="10.0.561001">
37+
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="10.0.563001">
3838
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
39-
<Sha>94798e07efab2663f2d1a71862780bc365d2e3ab</Sha>
39+
<Sha>80f1e84b2077a7208943db050067d86c94ace837</Sha>
4040
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
4141
</Dependency>
4242
<!-- Intermediate is necessary for source build. -->

eng/Versions.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99
<PropertyGroup Label="MSTest prod dependencies - darc updated">
1010
<MicrosoftDotNetBuildTasksTemplatingPackageVersion>10.0.0-beta.24604.4</MicrosoftDotNetBuildTasksTemplatingPackageVersion>
11-
<MicrosoftTestingExtensionsCodeCoverageVersion>17.14.0-preview.24620.2</MicrosoftTestingExtensionsCodeCoverageVersion>
11+
<MicrosoftTestingExtensionsCodeCoverageVersion>17.14.0-preview.24630.1</MicrosoftTestingExtensionsCodeCoverageVersion>
1212
<!-- comment to facilitate merge conflicts -->
13-
<MSTestEngineVersion>1.0.0-alpha.24628.3</MSTestEngineVersion>
13+
<MSTestEngineVersion>1.0.0-alpha.24630.3</MSTestEngineVersion>
1414
</PropertyGroup>
1515
</Project>

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.cs.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ byl však přijat tento počet argumentů: {4} s typy {5}.</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Časový limit '{0}' testu vypršel po {1}ms.</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Chyba: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Testovací '{0}' se zrušila.</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.de.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ aber empfing {4} Argument(e) mit den Typen „{5}“.</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Timeout bei test '{0}' nach {1}ms.</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Fehler: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Test '{0}' wurde abgebrochen.</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.es.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pero recibió {4} argumento(s), con los tipos "{5}".</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Se agotó el tiempo de espera de la '{0}' de pruebas después de {1}ms</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Error: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Se canceló la '{0}' de pruebas</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.fr.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ mais a reçu {4} argument(s), avec les types « {5} ».</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Délai de '{0}' de test dépassé après {1}ms</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Erreur : {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Le test '{0}' a été annulé</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.it.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ma ha ricevuto {4} argomenti, con tipi "{5}".</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Timeout del '{0}' di test dopo {1}ms</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Errore: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Il '{0}' di test è stato annullato</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.ja.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ but received {4} argument(s), with types '{5}'.</source>
6969
</trans-unit>
7070
<trans-unit id="Execution_Test_Timeout">
7171
<source>Test '{0}' timed out after {1}ms</source>
72-
<target state="new">Test '{0}' timed out after {1}ms</target>
72+
<target state="translated">テスト '{0}' {1}ミリ秒後にタイムアウトしました</target>
7373
<note />
7474
</trans-unit>
7575
<trans-unit id="GenericParameterCantBeInferred">
@@ -420,7 +420,7 @@ Error: {1}</source>
420420
</trans-unit>
421421
<trans-unit id="Execution_Test_Cancelled">
422422
<source>Test '{0}' was canceled</source>
423-
<target state="new">Test '{0}' was canceled</target>
423+
<target state="translated">テスト '{0}' が取り消されました</target>
424424
<note />
425425
</trans-unit>
426426
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.ko.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ but received {4} argument(s), with types '{5}'.</source>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">테스트 '{0}' {1}밀리초 후에 시간 초과되었습니다.</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Error: {1}</source>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">테스트 '{0}' 취소되었습니다.</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.pl.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ale liczba odebranych argumentów to {4} z typami „{5}”.</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Upłynął limit czasu '{0}' testu po {1}ms</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Błąd: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Anulowano '{0}' testowe</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.pt-BR.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ mas {4} argumentos recebidos, com tipos '{5}'.</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Tempo '{0}' tempo limite do teste após {1}ms</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Erro: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">O '{0}' teste foi cancelado</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.ru.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ but received {4} argument(s), with types '{5}'.</source>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Время ожидания '{0}' истекло через {1}мс</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Error: {1}</source>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Проверка '{0}' отменена</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.tr.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ancak, '{5}' türüyle {4} argüman aldı.</target>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">Test '{0}' ms sonra zaman aşımına {1}oldu</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Hata: {1}</target>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">Test '{0}' iptal edildi</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.zh-Hans.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ but received {4} argument(s), with types '{5}'.</source>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">测试 '{0}' {1}毫秒后超时</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Error: {1}</source>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">测试 '{0}' 已取消</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Adapter/MSTest.TestAdapter/Resources/xlf/Resource.zh-Hant.xlf

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ but received {4} argument(s), with types '{5}'.</source>
6868
</trans-unit>
6969
<trans-unit id="Execution_Test_Timeout">
7070
<source>Test '{0}' timed out after {1}ms</source>
71-
<target state="new">Test '{0}' timed out after {1}ms</target>
71+
<target state="translated">測試 '{0}' {1}毫秒後逾時</target>
7272
<note />
7373
</trans-unit>
7474
<trans-unit id="GenericParameterCantBeInferred">
@@ -419,7 +419,7 @@ Error: {1}</source>
419419
</trans-unit>
420420
<trans-unit id="Execution_Test_Cancelled">
421421
<source>Test '{0}' was canceled</source>
422-
<target state="new">Test '{0}' was canceled</target>
422+
<target state="translated">已取消測試 '{0}'</target>
423423
<note />
424424
</trans-unit>
425425
<trans-unit id="InvalidClassCleanupLifecycleValue">

src/Analyzers/MSTest.Analyzers/AssemblyCleanupShouldBeValidAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static void AnalyzeSymbol(
6161
{
6262
var methodSymbol = (IMethodSymbol)context.Symbol;
6363

64-
if (!methodSymbol.IsAssemblyCleanupMethod(assemblyCleanupAttributeSymbol))
64+
if (!methodSymbol.HasAttribute(assemblyCleanupAttributeSymbol))
6565
{
6666
return;
6767
}

src/Analyzers/MSTest.Analyzers/AssemblyInitializeShouldBeValidAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static void AnalyzeSymbol(SymbolAnalysisContext context, INamedTypeSymbo
5555
{
5656
var methodSymbol = (IMethodSymbol)context.Symbol;
5757

58-
if (methodSymbol.IsAssemblyInitializeMethod(assemblyInitializeAttributeSymbol)
58+
if (methodSymbol.HasAttribute(assemblyInitializeAttributeSymbol)
5959
&& !methodSymbol.HasValidFixtureMethodSignature(taskSymbol, valueTaskSymbol, canDiscoverInternals, shouldBeStatic: true,
6060
allowGenericType: false, FixtureParameterMode.MustHaveTestContext, testContextSymbol, testClassAttributeSymbol, fixtureAllowInheritedTestClass: false, out bool isFixable))
6161
{

src/Analyzers/MSTest.Analyzers/ClassCleanupShouldBeValidAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static void AnalyzeSymbol(
6363
{
6464
var methodSymbol = (IMethodSymbol)context.Symbol;
6565
bool isInheritanceModeSet = methodSymbol.IsInheritanceModeSet(inheritanceBehaviorSymbol, classCleanupAttributeSymbol);
66-
if (methodSymbol.IsClassInitializeMethod(classCleanupAttributeSymbol)
66+
if (methodSymbol.HasAttribute(classCleanupAttributeSymbol)
6767
&& (!methodSymbol.HasValidFixtureMethodSignature(taskSymbol, valueTaskSymbol, canDiscoverInternals, shouldBeStatic: true,
6868
allowGenericType: isInheritanceModeSet, FixtureParameterMode.OptionalTestContext, testContextSymbol,
6969
testClassAttributeSymbol, fixtureAllowInheritedTestClass: true, out bool isFixable)

src/Analyzers/MSTest.Analyzers/ClassInitializeShouldBeValidAnalyzer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private static void AnalyzeSymbol(SymbolAnalysisContext context, INamedTypeSymbo
5959
{
6060
var methodSymbol = (IMethodSymbol)context.Symbol;
6161
bool isInheritanceModeSet = methodSymbol.IsInheritanceModeSet(inheritanceBehaviorSymbol, classInitializeAttributeSymbol);
62-
if (methodSymbol.IsClassInitializeMethod(classInitializeAttributeSymbol)
62+
if (methodSymbol.HasAttribute(classInitializeAttributeSymbol)
6363
&& ((!methodSymbol.HasValidFixtureMethodSignature(taskSymbol, valueTaskSymbol, canDiscoverInternals, shouldBeStatic: true,
6464
allowGenericType: isInheritanceModeSet, FixtureParameterMode.MustHaveTestContext, testContextSymbol,
6565
testClassAttributeSymbol, fixtureAllowInheritedTestClass: true, out bool isFixable))

src/Analyzers/MSTest.Analyzers/Helpers/FixtureUtils.cs

-18
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@ namespace MSTest.Analyzers.Helpers;
1212

1313
internal static class FixtureUtils
1414
{
15-
public static bool IsAssemblyInitializeMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol assemblyInitializeAttributeSymbol)
16-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, assemblyInitializeAttributeSymbol));
17-
18-
public static bool IsAssemblyCleanupMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol assemblyCleanupAttributeSymbol)
19-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, assemblyCleanupAttributeSymbol));
20-
21-
public static bool IsClassInitializeMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol classInitializeAttributeSymbol)
22-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, classInitializeAttributeSymbol));
23-
24-
public static bool IsClassCleanupMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol classCleanupAttributeSymbol)
25-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, classCleanupAttributeSymbol));
26-
27-
public static bool IsTestInitializeMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol testInitializeAttributeSymbol)
28-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, testInitializeAttributeSymbol));
29-
30-
public static bool IsTestCleanupMethod(this IMethodSymbol methodSymbol, INamedTypeSymbol testCleanupAttributeSymbol)
31-
=> methodSymbol.GetAttributes().Any(attr => SymbolEqualityComparer.Default.Equals(attr.AttributeClass, testCleanupAttributeSymbol));
32-
3315
public static bool HasValidFixtureMethodSignature(this IMethodSymbol methodSymbol, INamedTypeSymbol? taskSymbol,
3416
INamedTypeSymbol? valueTaskSymbol, bool canDiscoverInternals, bool shouldBeStatic, bool allowGenericType,
3517
FixtureParameterMode fixtureParameterMode,

0 commit comments

Comments
 (0)