Skip to content

Commit 5eee0d8

Browse files
committed
apply dotnet format
1 parent a6691ce commit 5eee0d8

File tree

44 files changed

+100
-149
lines changed

Some content is hidden

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

44 files changed

+100
-149
lines changed

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite.Appendix/EchonetClassGroupSpecification.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
6+
using System.Reflection;
67
using System.Text.Json;
78
using System.Text.Json.Serialization;
8-
using System.Reflection;
99

1010
using NUnit.Framework;
1111

@@ -67,7 +67,7 @@ private static System.Collections.IEnumerable YieldTestCases_Ctor_JsonConstructo
6767
yield return new object?[] {
6868
"classList not empty",
6969
new object?[] { (byte)0x00, "classGroupNameOfficial", "classGroupName", "superClass", new List<EchonetClassSpecification>() {
70-
new EchonetClassSpecification(false, (byte)0x00, "?", "?"),
70+
new(false, 0x00, "?", "?"),
7171
}
7272
},
7373
null, null, static (EchonetClassGroupSpecification cg) => Assert.That(cg.Classes.Count, Is.EqualTo(1), nameof(cg.Classes))
@@ -124,6 +124,7 @@ public void Ctor_JsonConstructor(
124124
private static System.Collections.IEnumerable YieldTestCases_Deserialize()
125125
{
126126
yield return new object?[] {
127+
// lang=json,strict
127128
@"{
128129
""ClassGroupCode"": ""0x02"",
129130
""ClassGroupNameOfficial"": ""住宅・設備関連機器クラスグループ"",
@@ -139,6 +140,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
139140

140141
// upper case hex
141142
yield return new object?[] {
143+
// lang=json,strict
142144
@"{
143145
""ClassGroupCode"": ""0xFF"",
144146
""ClassGroupNameOfficial"": ""?"",
@@ -154,6 +156,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
154156

155157
// lower case hex
156158
yield return new object?[] {
159+
// lang=json,strict
157160
@"{
158161
""ClassGroupCode"": ""0xff"",
159162
""ClassGroupNameOfficial"": ""?"",

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite.Appendix/EchonetClassSpecification.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// SPDX-License-Identifier: MIT
33
using System;
44
using System.Linq;
5+
using System.Reflection;
56
using System.Text.Json;
67
using System.Text.Json.Serialization;
7-
using System.Reflection;
88

99
using NUnit.Framework;
1010

@@ -93,6 +93,7 @@ public void Ctor_JsonConstructor(
9393
private static System.Collections.IEnumerable YieldTestCases_Deserialize()
9494
{
9595
yield return new object?[] {
96+
// lang=json,strict
9697
@"{
9798
""Status"": true,
9899
""ClassCode"": ""0x88"",
@@ -107,6 +108,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
107108

108109
// upper case hex
109110
yield return new object?[] {
111+
// lang=json,strict
110112
@"{
111113
""Status"": true,
112114
""ClassCode"": ""0xFF"",
@@ -121,6 +123,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
121123

122124
// lower case hex
123125
yield return new object?[] {
126+
// lang=json,strict
124127
@"{
125128
""Status"": true,
126129
""ClassCode"": ""0xff"",

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite.Appendix/EchonetObjectSpecification.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// SPDX-License-Identifier: MIT
33
using System;
44
using System.Linq;
5-
using System.Text.Json;
6-
using System.Text.Json.Serialization;
7-
using System.Reflection;
85

96
using NUnit.Framework;
107

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite.Appendix/EchonetPropertySpecification.cs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;
7+
using System.Reflection;
78
using System.Text.Json;
89
using System.Text.Json.Serialization;
9-
using System.Reflection;
1010

1111
using NUnit.Framework;
1212

@@ -189,6 +189,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
189189
{
190190
yield return new object?[] {
191191
"standard property",
192+
// lang=json,strict
192193
@"{
193194
""Name"": ""異常発生状態"",
194195
""Code"": ""0x88"",
@@ -216,6 +217,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
216217

217218
yield return new object?[] {
218219
"Code: upper case hex",
220+
// lang=json,strict
219221
@"{
220222
""Name"": ""?"",
221223
""Code"": ""0xFF"",
@@ -243,6 +245,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
243245

244246
yield return new object?[] {
245247
"Code: lower case hex",
248+
// lang=json,strict
246249
@"{
247250
""Name"": ""?"",
248251
""Code"": ""0xff"",
@@ -270,6 +273,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
270273

271274
yield return new object?[] {
272275
"MinSize: null",
276+
// lang=json,strict
273277
@"{
274278
""Name"": ""?"",
275279
""Code"": ""0xFF"",
@@ -290,13 +294,14 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
290294
}",
291295
"?",
292296
(byte)0xFF,
293-
(int?)null,
297+
null,
294298
false,
295299
Array.Empty<ApplicationServiceName>()
296300
};
297301

298302
yield return new object?[] {
299303
"MinSize: not specified",
304+
// lang=json,strict
300305
@"{
301306
""Name"": ""?"",
302307
""Code"": ""0xFF"",
@@ -316,13 +321,14 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
316321
}",
317322
"?",
318323
(byte)0xFF,
319-
(int?)null,
324+
null,
320325
false,
321326
Array.Empty<ApplicationServiceName>()
322327
};
323328

324329
yield return new object?[] {
325330
"OptionRequired: not empty",
331+
// lang=json,strict
326332
@"{
327333
""Name"": ""?"",
328334
""Code"": ""0xFF"",
@@ -349,7 +355,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
349355
}",
350356
"?",
351357
(byte)0xFF,
352-
(int?)null,
358+
null,
353359
false,
354360
new[] {
355361
ApplicationServiceName.MobileServices,
@@ -363,6 +369,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
363369

364370
yield return new object?[] {
365371
"OptionRequired: empty",
372+
// lang=json,strict
366373
@"{
367374
""Name"": ""?"",
368375
""Code"": ""0xFF"",
@@ -382,13 +389,14 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
382389
}",
383390
"?",
384391
(byte)0xFF,
385-
(int?)null,
392+
null,
386393
false,
387394
Array.Empty<ApplicationServiceName>()
388395
};
389396

390397
yield return new object?[] {
391398
"OptionRequired: null",
399+
// lang=json,strict
392400
@"{
393401
""Name"": ""?"",
394402
""Code"": ""0xFF"",
@@ -408,13 +416,14 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
408416
}",
409417
"?",
410418
(byte)0xFF,
411-
(int?)null,
419+
null,
412420
false,
413421
Array.Empty<ApplicationServiceName>()
414422
};
415423

416424
yield return new object?[] {
417425
"OptionRequired: not specified",
426+
// lang=json,strict
418427
@"{
419428
""Name"": ""?"",
420429
""Code"": ""0xFF"",
@@ -433,7 +442,7 @@ private static System.Collections.IEnumerable YieldTestCases_Deserialize()
433442
}",
434443
"?",
435444
(byte)0xFF,
436-
(int?)null,
445+
null,
437446
false,
438447
Array.Empty<ApplicationServiceName>()
439448
};

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite/ApplicationServiceName.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ public void Deserialize(string value, ApplicationServiceName expected)
3636
var json = "\"" + value + "\"";
3737

3838
Assert.That(JsonSerializer.Deserialize<ApplicationServiceName>(json), Is.EqualTo(expected));
39-
}}
39+
}
40+
}

tests/Smdn.Net.EchonetLite.Appendix/Smdn.Net.EchonetLite/DeviceClasses.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-FileCopyrightText: 2023 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
3-
using System;
43
using System.Linq;
54

65
using NUnit.Framework;

tests/Smdn.Net.EchonetLite.RouteB.BP35XX/Smdn.Net.EchonetLite.RouteB.DependencyInjection/BP35A1RouteBServiceBuilderExtensions.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
// SPDX-FileCopyrightText: 2025 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
33
using System;
4-
using System.Net;
5-
using System.Threading;
6-
using System.Threading.Tasks;
74

85
using Microsoft.Extensions.DependencyInjection;
96

107
using NUnit.Framework;
118

12-
using Polly;
13-
using Polly.DependencyInjection;
149
using Polly.Registry;
1510
using Polly.Retry;
1611

@@ -190,7 +185,7 @@ public void AddBP35A1PanaAuthenticationWorkaround_WithRetryOptions()
190185
);
191186
}
192187

193-
[Test]
188+
[Test]
194189
public void AddBP35A1PanaAuthenticationWorkaround_WithConfigureWorkaroundPipeline()
195190
{
196191
const string ServiceKey = nameof(ServiceKey);

tests/Smdn.Net.EchonetLite.RouteB.BP35XX/Smdn.Net.EchonetLite.RouteB.Transport.BP35XX/BP35A1RouteBEchonetLiteHandlerFactory.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// SPDX-FileCopyrightText: 2025 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
3-
using System;
4-
53
using Microsoft.Extensions.DependencyInjection;
64

75
using NUnit.Framework;

tests/Smdn.Net.EchonetLite.RouteB.BP35XX/Smdn.Net.EchonetLite.RouteB.Transport.BP35XX/BP35A1RouteBEchonetLiteHandlerServiceCollectionExtensions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
// SPDX-FileCopyrightText: 2025 smdn <smdn@smdn.jp>
22
// SPDX-License-Identifier: MIT
3-
using System;
4-
53
using Microsoft.Extensions.DependencyInjection;
64

75
using NUnit.Framework;
86

9-
using Polly;
10-
using Polly.DependencyInjection;
117
using Polly.Registry;
128
using Polly.Retry;
139

tests/Smdn.Net.EchonetLite.RouteB.Primitives/Smdn.Net.EchonetLite.RouteB.Transport/RouteBEchonetLiteHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Net;
66
using System.Threading;
77
using System.Threading.Tasks;
8+
89
using NUnit.Framework;
910

1011
using Smdn.Net.EchonetLite.RouteB.Credentials;

0 commit comments

Comments
 (0)