Skip to content

Commit 81f904e

Browse files
committed
Fix .NET 3.5 test build.
1 parent bc0ccc8 commit 81f904e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Renci.SshNet.Tests/Classes/Common/ExtensionsTest_Concat.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ private void Performance(byte[] first, byte[] second, int runs)
151151

152152
Console.WriteLine(stopWatch.ElapsedMilliseconds);
153153

154-
stopWatch.Restart();
154+
stopWatch.Reset();
155+
stopWatch.Start();
155156

156157
for (var i = 0; i < runs; i++)
157158
{

src/Renci.SshNet.Tests/Classes/Common/ExtensionsTest_IsEqualTo_ByteArray.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ private void Performance(byte[] left, byte[] right, int runs)
161161

162162
Console.WriteLine(stopWatch.ElapsedMilliseconds);
163163

164-
stopWatch.Restart();
164+
stopWatch.Reset();
165+
stopWatch.Start();
165166

166167
for (var i = 0; i < runs; i++)
167168
{

src/Renci.SshNet.Tests/Classes/Common/ExtensionsTest_Take_Count.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ private void Performance(byte[] value, int count, int runs)
158158

159159
Console.WriteLine(stopWatch.ElapsedMilliseconds);
160160

161-
stopWatch.Restart();
161+
stopWatch.Reset();
162+
stopWatch.Start();
162163

163164
for (var i = 0; i < runs; i++)
164165
{

0 commit comments

Comments
 (0)