Skip to content

Commit 7b08f73

Browse files
committed
apply dotnet format
1 parent 432e55b commit 7b08f73

File tree

7 files changed

+23
-22
lines changed

7 files changed

+23
-22
lines changed

tests/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/ProjectFinder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: MIT
33
using System;
44
using System.IO;
5+
56
using NUnit.Framework;
67

78
#if SYSTEM_IO_PATH_JOIN
@@ -13,7 +14,7 @@
1314
namespace Smdn.Reflection.ReverseGenerating.ListApi;
1415

1516
[TestFixture]
16-
class ProjectFinderTests {
17+
public class ProjectFinderTests {
1718
[TestCase("Lib", "Lib.csproj")]
1819
[TestCase("Exe", "Exe.csproj")]
1920
[TestCase("ExeVB", "ExeVB.vbproj")]

tests/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.GetApiListWriterOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Smdn.Reflection.ReverseGenerating.ListApi;
88

99
[TestFixture]
10-
class RootCommandImplementationGetApiListWriterOptionsTests {
10+
public class RootCommandImplementationGetApiListWriterOptionsTests {
1111
private ApiListWriterOptions GetApiListWriterOptions(string args)
1212
{
1313
var impl = new RootCommandImplementation();

tests/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.GetInputAssemblyFiles.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// SPDX-FileCopyrightText: 2021 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
3+
#if !FEATURE_BUILD_PROJ
34
using System;
5+
#endif
46
using System.IO;
57
using System.Linq;
6-
using System.Runtime.InteropServices;
7-
using Microsoft.Build.Framework;
8+
89
using Microsoft.Extensions.DependencyInjection;
910
using Microsoft.Extensions.Logging;
11+
1012
using NUnit.Framework;
11-
using Smdn.Reflection.ReverseGenerating.ListApi.Build;
1213

1314
#if SYSTEM_IO_PATH_JOIN
1415
using PathJoiner = System.IO.Path;
@@ -19,8 +20,8 @@
1920
namespace Smdn.Reflection.ReverseGenerating.ListApi;
2021

2122
[TestFixture]
22-
class RootCommandImplementationGetInputAssemblyFilesTests {
23-
private ServiceProvider serviceProvider;
23+
public class RootCommandImplementationGetInputAssemblyFilesTests {
24+
private ServiceProvider? serviceProvider;
2425

2526
[OneTimeSetUp]
2627
public void Init()
@@ -39,7 +40,7 @@ public void Init()
3940
[OneTimeTearDown]
4041
public void OneTimeTearDown()
4142
{
42-
serviceProvider.Dispose();
43+
serviceProvider?.Dispose();
4344
}
4445

4546
[TestCase("Lib.dll", "net8.0")]

tests/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.GetOutputFilePaths.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// SPDX-FileCopyrightText: 2021 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
3-
using System;
43
using System.IO;
54
using System.Linq;
5+
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.Extensions.Logging;
8+
89
using NUnit.Framework;
910

1011
#if SYSTEM_IO_PATH_JOIN
@@ -16,8 +17,8 @@
1617
namespace Smdn.Reflection.ReverseGenerating.ListApi;
1718

1819
[TestFixture]
19-
class RootCommandImplementationGetOutputFilePathsTests {
20-
private ServiceProvider serviceProvider;
20+
public class RootCommandImplementationGetOutputFilePathsTests {
21+
private ServiceProvider? serviceProvider;
2122

2223
[OneTimeSetUp]
2324
public void Init()
@@ -36,10 +37,10 @@ public void Init()
3637
[OneTimeTearDown]
3738
public void OneTimeTearDown()
3839
{
39-
serviceProvider.Dispose();
40+
serviceProvider?.Dispose();
4041
}
4142

42-
static string GetCurrentDirectory() => TestContext.CurrentContext.WorkDirectory;
43+
private static string GetCurrentDirectory() => TestContext.CurrentContext.WorkDirectory;
4344

4445
[TestCase("Lib.dll", "net8.0", "Lib-net8.0.apilist.cs")]
4546
[TestCase("Exe.dll", "net8.0", "Exe-net8.0.apilist.cs")]

tests/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/VerbosityOption.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// SPDX-FileCopyrightText: 2021 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
33
using System;
4-
using System.CommandLine;
5-
using System.CommandLine.Parsing;
4+
65
using Microsoft.Build.Framework;
76
using Microsoft.Extensions.Logging;
7+
88
using NUnit.Framework;
99

1010
namespace Smdn.Reflection.ReverseGenerating.ListApi;
1111

1212
[TestFixture]
13-
class VerbosityOptionTests {
13+
public class VerbosityOptionTests {
1414
[TestCase("q", LogLevel.Information)]
1515
[TestCase("quiet", LogLevel.Information)]
1616
[TestCase("m", LogLevel.Information)]

tests/test-assm/Exe/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
using System;
22

3-
Console.WriteLine("Hello, world!");
3+
Console.WriteLine("Hello, world!");
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using System;
1+
namespace Lib.Lib;
22

3-
namespace Lib.Lib {
4-
public abstract class C {
5-
protected C() {}
6-
}
3+
public abstract class C {
4+
protected C() { }
75
}

0 commit comments

Comments
 (0)