Skip to content

Commit b54003d

Browse files
committed
Code style fixes
***NO_CI***
1 parent 5963e0d commit b54003d

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

source/TestAdapter/Discover.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static List<TestCase> ComposeTestCases(string sourceFile)
108108

109109
// try to find nfproj file for this unit test assembly
110110
var nfprojFile = FindNfprojFile(sourceFile);
111-
111+
112112
if (!nfprojFile.Any())
113113
{
114114
return collectionOfTestCases;
@@ -144,7 +144,7 @@ public static List<TestCase> ComposeTestCases(string sourceFile)
144144
for (int i = 0; i < testMethodsToItterate.Length; i++)
145145
{
146146
var testMethodAttrib = testMethodsToItterate[i];
147-
147+
148148
var testCase = BuildTestCaseFromSourceFile(
149149
allCsFiles,
150150
typeCandidate,
@@ -199,7 +199,7 @@ private static Assembly App_AssemblyResolve(object sender, ResolveEventArgs args
199199
string path = Path.GetDirectoryName(args.RequestingAssembly.Location);
200200
return Assembly.LoadFrom(Path.Combine(path, dllName));
201201
}
202-
catch
202+
catch
203203
{
204204
// this is called on several occasions, some are not related with our types or assemblies
205205
// therefore there are calls that can't be resolved and that's OK
@@ -256,7 +256,7 @@ private static FileInfo[] FindNfprojFile(string source)
256256

257257
return nfproj;
258258
}
259-
catch(Exception ex)
259+
catch (Exception ex)
260260
{
261261
throw new FileNotFoundException($"Exception raised when finding NF project file: '{ex}' searching for {source}");
262262
}

source/TestAdapter/Executor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private async Task<List<TestResult>> RunTestOnHardwareAsync(List<TestCase> tests
257257
results.First().ErrorMessage = "Couldn't find any valid nanoDevice. Maybe try to disable the device watchers in Visual Studio Extension! If the situation persists reboot the device and/or disconnect and connect it again.";
258258

259259
_logger.LogMessage("Couldn't find any valid nanoDevice.", Settings.LoggingLevel.Verbose);
260-
260+
261261
return results;
262262
}
263263
else
@@ -267,7 +267,7 @@ private async Task<List<TestResult>> RunTestOnHardwareAsync(List<TestCase> tests
267267

268268
// re-scan devices
269269
serialDebugClient.ReScanDevices();
270-
270+
271271
goto retryConnection;
272272
}
273273
}
@@ -579,7 +579,6 @@ await Task.Run(async delegate
579579
_logger.LogMessage("Failed to initialize device.", Settings.LoggingLevel.Error);
580580
}
581581

582-
583582
return results;
584583
}
585584

source/TestAdapter/NanoCLRHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
using nanoFramework.TestPlatform.TestAdapter;
99
using Newtonsoft.Json;
1010
using System;
11-
using System.Text.RegularExpressions;
12-
using System.Threading;
1311
using System.ComponentModel;
1412
using System.Net;
13+
using System.Text.RegularExpressions;
14+
using System.Threading;
1515

1616
namespace nanoFramework.TestAdapter
1717
{

0 commit comments

Comments
 (0)