Skip to content

Commit bd80199

Browse files
committed
Only use methods available in .NET 3.5 (and higher).
1 parent 0a1a031 commit bd80199

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
@@ -157,7 +157,8 @@ private static void Performance(byte[] first, byte[] second, int runs)
157157

158158
Console.WriteLine(stopWatch.ElapsedMilliseconds);
159159

160-
stopWatch.Restart();
160+
stopWatch.Reset();
161+
stopWatch.Start();
161162

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

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

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

169169
Console.WriteLine(stopWatch.ElapsedMilliseconds);
170170

171-
stopWatch.Restart();
171+
stopWatch.Reset();
172+
stopWatch.Start();
172173

173174
for (var i = 0; i < runs; i++)
174175
{

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

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

165165
Console.WriteLine(stopWatch.ElapsedMilliseconds);
166166

167-
stopWatch.Restart();
167+
stopWatch.Reset();
168+
stopWatch.Start();
168169

169170
for (var i = 0; i < runs; i++)
170171
{

0 commit comments

Comments
 (0)