Skip to content

Commit 6bba6b6

Browse files
committed
fix analyzer warnings
1 parent 7ee4c80 commit 6bba6b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi/ApiListWriter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static void CreateAssemblyFromSourceCode(
107107
var location = $"{span.Path}({span.StartLinePosition.Line + 1},{span.StartLinePosition.Character + 1})";
108108

109109
#pragma warning disable CA1305 // cannot pass IFormatProvider
110-
TestContext.WriteLine($"{TestContext.CurrentContext.Test.FullName} {location}: {diag.Severity} {diag.Id}: {diag.GetMessage()}");
110+
TestContext.Out.WriteLine($"{TestContext.CurrentContext.Test.FullName} {location}: {diag.Severity} {diag.Id}: {diag.GetMessage()}");
111111
#pragma warning restore CA1305
112112
}
113113

@@ -518,7 +518,7 @@ string expectedEmbeddedResourcesOutput
518518

519519
[Test]
520520
public void WriteHeader_WriteEmbeddedResources_HasNoEmbeddedResources(
521-
[Values(true, false)] bool writeEmbeddedResources
521+
[Values] bool writeEmbeddedResources
522522
)
523523
{
524524
var options = new ApiListWriterOptions();
@@ -718,7 +718,7 @@ ApiListWriterOptions options
718718

719719
[Test]
720720
public void WriteFooter(
721-
[Values(true, false)] bool writeFooter
721+
[Values] bool writeFooter
722722
)
723723
{
724724
var options = new ApiListWriterOptions();

tests/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi/AssemblyLoader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void Init()
4242

4343
[Test]
4444
public void UsingAssembly_ArgumentNull_AssemblyFile(
45-
[Values(true, false)] bool loadIntoReflectionOnlyContext
45+
[Values] bool loadIntoReflectionOnlyContext
4646
)
4747
{
4848
Assert.Throws<ArgumentNullException>(() => {
@@ -59,7 +59,7 @@ public void UsingAssembly_ArgumentNull_AssemblyFile(
5959

6060
[Test]
6161
public void UsingAssembly_ArgumentNull_AssemblyStream(
62-
[Values(true, false)] bool loadIntoReflectionOnlyContext
62+
[Values] bool loadIntoReflectionOnlyContext
6363
)
6464
{
6565
Assert.Throws<ArgumentNullException>(() => {
@@ -77,7 +77,7 @@ public void UsingAssembly_ArgumentNull_AssemblyStream(
7777

7878
[Test]
7979
public void UsingAssembly_ArgumentNull_ComponentAssemblyPath(
80-
[Values(true, false)] bool loadIntoReflectionOnlyContext
80+
[Values] bool loadIntoReflectionOnlyContext
8181
)
8282
{
8383
Assert.Throws<ArgumentNullException>(() => {

0 commit comments

Comments
 (0)