Skip to content

Commit 89d2c6d

Browse files
Whitespace-only: make spacing consistent between methods.
1 parent 283d785 commit 89d2c6d

11 files changed

Lines changed: 9 additions & 28 deletions

File tree

DockerComposeFixture.Tests/Compose/ObserverToQueueTests.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using DockerComposeFixture.Compose;
22
using DockerComposeFixture.Tests.Utils;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Text;
6-
using System.Threading;
73
using System.Threading.Tasks;
84
using Xunit;
95

DockerComposeFixture.Tests/Compose/ProcessRunnerTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Diagnostics;
4-
using System.Text;
53
using DockerComposeFixture.Compose;
64
using DockerComposeFixture.Logging;
75
using Moq;
@@ -16,9 +14,9 @@ public void Execute_ReturnsOutput_WhenCalled()
1614
{
1715
var logger = new Mock<ILogger>();
1816
var psi = new ProcessStartInfo("echo", "\"test1\ntest2\ntest3\"");
19-
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
20-
{
21-
psi = new ProcessStartInfo("cmd.exe", "/C \"echo test1& echo test2& echo test3\"");
17+
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
18+
{
19+
psi = new ProcessStartInfo("cmd.exe", "/C \"echo test1& echo test2& echo test3\"");
2220
}
2321
var runner = new ProcessRunner(psi);
2422
runner.Subscribe(logger.Object);

DockerComposeFixture.Tests/DockerFixtureTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ public void Init_MonitorsServices_WhenTheyStartSlowly()
152152
compose.Verify(c => c.Up(), Times.Once);
153153
compose.Verify(c => c.PsWithJsonFormat(), Times.AtLeast(5));
154154
}
155-
156-
155+
157156
[Fact]
158157
public void Init_Throws_WhenServicesFailToStart()
159158
{
@@ -172,7 +171,6 @@ public void Init_Throws_WhenServicesFailToStart()
172171
new DockerFixture(null).Init(new[] { Path.GetTempFileName() }, "up", "down", 120, null, compose.Object));
173172
}
174173

175-
176174
[Fact]
177175
public void Init_Throws_DockerComposeExitsPrematurely()
178176
{
@@ -227,9 +225,7 @@ public void Init_Throws_WhenStartupTimeoutSecsIsLessThanOne()
227225
() => new DockerFixtureOptions { DockerComposeFiles = new[] { "docker-compose.yml" }, StartupTimeoutSecs = -1 },
228226
compose.Object));
229227
}
230-
231-
232-
228+
233229
[Fact]
234230
public void Dispose_CallsDown_WhenRun()
235231
{
@@ -246,6 +242,5 @@ public void Dispose_CallsDown_WhenRun()
246242

247243
compose.Verify(c => c.Down(), Times.Once);
248244
}
249-
250245
}
251246
}

DockerComposeFixture.Tests/Utils/ObservableCounter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43
using System.Threading;
54

65
namespace DockerComposeFixture.Tests.Utils
76
{
87
public class ObservableCounter:IObservable<string>
98
{
109
private readonly List<IObserver<string>> observalbes = new List<IObserver<string>>();
10+
1111
public IDisposable Subscribe(IObserver<string> observer)
1212
{
1313
this.observalbes.Add(observer);

DockerComposeFixture/Compose/ProcessRunner.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,5 @@ public void Dispose()
7070
this.observers.Remove(this.observer);
7171
}
7272
}
73-
7473
}
7574
}

DockerComposeFixture/DockerFixtureOptions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace DockerComposeFixture
64
{
@@ -52,7 +50,5 @@ public void Validate()
5250
throw new ArgumentException(nameof(this.DockerComposeFiles));
5351
}
5452
}
55-
56-
5753
}
5854
}

DockerComposeFixture/IDockerFixtureOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32

43
namespace DockerComposeFixture
54
{

DockerComposeFixture/Logging/ConsoleLogger.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public void OnError(Exception error)
1515
this.Log(error.Message + "\n" + error.StackTrace);
1616
throw error;
1717
}
18-
19-
18+
2019
public void OnNext(string value)
2120
{
2221
this.Log(value);

DockerComposeFixture/Logging/FileLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public FileLogger(string logfileName)
1818
}
1919
this.logfileName = logfileName;
2020
}
21+
2122
public void OnCompleted()
2223
{
2324

@@ -43,7 +44,6 @@ public void Log(string msg)
4344
writer.Flush();
4445
writer.Close();
4546
}
46-
4747
}
4848
}
4949
}

DockerComposeFixture/Logging/ListLogger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public ListLogger()
99
{
1010
this.LoggedLines = new List<string>();
1111
}
12+
1213
public void OnCompleted()
1314
{
1415

0 commit comments

Comments
 (0)