Skip to content

Commit 749a0e0

Browse files
authored
drop obsolete #if directives (#1394)
1 parent 6e42d1f commit 749a0e0

11 files changed

+0
-44
lines changed

test/Renci.SshNet.Shared.Tests/Abstractions/CryptoAbstraction_GenerateRandom.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
using System;
22
using System.Linq;
33
using Renci.SshNet.Abstractions;
4-
#if SILVERLIGHT
5-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
6-
#else
74
using Microsoft.VisualStudio.TestTools.UnitTesting;
8-
#endif
95

106
namespace Renci.SshNet.Tests.Abstractions
117
{

test/Renci.SshNet.Shared.Tests/Abstractions/DnsAbstraction_GetHostAddresses.cs

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
using System;
22
using System.Net;
33
using System.Net.Sockets;
4-
#if SILVERLIGHT
5-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
6-
#else
74
using Microsoft.VisualStudio.TestTools.UnitTesting;
8-
#endif
95
using Renci.SshNet.Abstractions;
106

117
namespace Renci.SshNet.Tests.Abstractions
@@ -53,14 +49,12 @@ public void ShouldReturnHostAddressesOfLocalHostWhenHostNameOrAddressIsEmpty()
5349
var addresses = DnsAbstraction.GetHostAddresses(hostNameOrAddress);
5450
Assert.IsNotNull(addresses);
5551

56-
#if !SILVERLIGHT
5752
var hostEntry = Dns.GetHostEntry(Dns.GetHostName());
5853
Assert.IsNotNull(hostEntry);
5954

6055
Assert.AreEqual(hostEntry.AddressList.Length, addresses.Length);
6156
for (var i = 0; i < hostEntry.AddressList.Length; i++)
6257
Assert.AreEqual(hostEntry.AddressList[i], addresses[i]);
63-
#endif
6458
}
6559

6660
[TestMethod]

test/Renci.SshNet.Shared.Tests/Abstractions/FileSystemAbstraction_EnumerateFiles.cs

-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
using System.IO;
33
using System.Linq;
44
using Renci.SshNet.Abstractions;
5-
#if SILVERLIGHT
6-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
7-
#else
85
using Microsoft.VisualStudio.TestTools.UnitTesting;
9-
#endif
106

117
namespace Renci.SshNet.Tests.Abstractions
128
{

test/Renci.SshNet.Shared.Tests/Abstractions/SocketAbstraction_CanWrite.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System.Net.Sockets;
22
using Renci.SshNet.Abstractions;
3-
#if SILVERLIGHT
4-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
5-
#else
63
using Microsoft.VisualStudio.TestTools.UnitTesting;
7-
#endif
84

95
namespace Renci.SshNet.Tests.Abstractions
106
{

test/Renci.SshNet.Shared.Tests/Abstractions/ThreadAbstraction_ExecuteThread.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System;
22
using System.Threading;
3-
#if SILVERLIGHT
4-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
5-
#else
63
using Microsoft.VisualStudio.TestTools.UnitTesting;
7-
#endif
84
using Renci.SshNet.Abstractions;
95

106
namespace Renci.SshNet.Tests.Abstractions

test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Started.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using System;
2-
#if SILVERLIGHT
3-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
4-
#else
52
using Microsoft.VisualStudio.TestTools.UnitTesting;
6-
#endif
73

84
namespace Renci.SshNet.Tests
95
{

test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Starting.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using System;
2-
#if SILVERLIGHT
3-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
4-
#else
52
using Microsoft.VisualStudio.TestTools.UnitTesting;
6-
#endif
73

84
namespace Renci.SshNet.Tests
95
{

test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Stopped.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using System;
2-
#if SILVERLIGHT
3-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
4-
#else
52
using Microsoft.VisualStudio.TestTools.UnitTesting;
6-
#endif
73

84
namespace Renci.SshNet.Tests
95
{

test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Stopping.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using System;
2-
#if SILVERLIGHT
3-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
4-
#else
52
using Microsoft.VisualStudio.TestTools.UnitTesting;
6-
#endif
73

84
namespace Renci.SshNet.Tests
95
{

test/Renci.SshNet.Shared.Tests/SshMessageFactoryTest.cs

-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
using Renci.SshNet.Messages.Authentication;
99
using Renci.SshNet.Messages.Connection;
1010
using Renci.SshNet.Messages.Transport;
11-
#if SILVERLIGHT
12-
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
13-
#else
1411
using Microsoft.VisualStudio.TestTools.UnitTesting;
15-
#endif
1612

1713
namespace Renci.SshNet.Tests
1814
{

test/Renci.SshNet.Tests/Classes/Sftp/SftpFileReaderTest_Dispose_SftpSessionIsOpen_EndCloseThrowsException.cs

-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
using Moq;
77

8-
#if !FEATURE_EVENTWAITHANDLE_DISPOSE
98
using Renci.SshNet.Common;
10-
#endif // !FEATURE_EVENTWAITHANDLE_DISPOSE
119
using Renci.SshNet.Sftp;
1210

1311
using BufferedRead = Renci.SshNet.Sftp.SftpFileReader.BufferedRead;

0 commit comments

Comments
 (0)