Fix to avoid CA1859 #1852
Annotations
62 warnings
build (Release, net6.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Release, net8.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th18/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th17/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th175/AllScoreDataTests.cs#L87
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th18/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th17/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net8.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th095/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th095/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th18/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th17/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th11/CardReplacerTests.cs#L24
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th18/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th095/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th17/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net48) / build:
ThScoreFileConverter.Tests/Models/Th10/CardReplacerTests.cs#L24
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th095/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th125/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th125/ShotExReplacerTests.cs#L144
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Core.Tests/UnitTesting/TestHelper.cs#L15
Type 'TEnum' is incompatible with type 'int' and cast attempts will throw InvalidCastException at runtime (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L33
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L34
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L42
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQTableTests.cs#L43
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L32
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Squirrel/SQArrayTests.cs#L40
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th18/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th095/ShotReplacerTests.cs#L69
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
build (Debug, net6.0-windows) / build:
ThScoreFileConverter.Tests/Models/Th17/CardReplacerTests.cs#L30
Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1861)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
ThScoreFileConverter.Debug.net48
Expired
|
13.1 MB |
|
ThScoreFileConverter.Debug.net6.0-windows
Expired
|
13.4 MB |
|
ThScoreFileConverter.Debug.net8.0-windows
Expired
|
12.5 MB |
|
ThScoreFileConverter.Release.net48
Expired
|
13 MB |
|
ThScoreFileConverter.Release.net6.0-windows
Expired
|
13.3 MB |
|
ThScoreFileConverter.Release.net8.0-windows
Expired
|
12.4 MB |
|