Prechádzať zdrojové kódy

drop obsolete #if directives (#1394)

mus65 1 rok pred
rodič
commit
749a0e0074

+ 0 - 4
test/Renci.SshNet.Shared.Tests/Abstractions/CryptoAbstraction_GenerateRandom.cs

@@ -1,11 +1,7 @@
 using System;
 using System.Linq;
 using Renci.SshNet.Abstractions;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests.Abstractions
 {

+ 0 - 6
test/Renci.SshNet.Shared.Tests/Abstractions/DnsAbstraction_GetHostAddresses.cs

@@ -1,11 +1,7 @@
 using System;
 using System.Net;
 using System.Net.Sockets;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 using Renci.SshNet.Abstractions;
 
 namespace Renci.SshNet.Tests.Abstractions
@@ -53,14 +49,12 @@ namespace Renci.SshNet.Tests.Abstractions
             var addresses = DnsAbstraction.GetHostAddresses(hostNameOrAddress);
             Assert.IsNotNull(addresses);
 
-#if !SILVERLIGHT
             var hostEntry = Dns.GetHostEntry(Dns.GetHostName());
             Assert.IsNotNull(hostEntry);
 
             Assert.AreEqual(hostEntry.AddressList.Length, addresses.Length);
             for (var i = 0; i < hostEntry.AddressList.Length; i++)
                 Assert.AreEqual(hostEntry.AddressList[i], addresses[i]);
-#endif
         }
 
         [TestMethod]

+ 0 - 4
test/Renci.SshNet.Shared.Tests/Abstractions/FileSystemAbstraction_EnumerateFiles.cs

@@ -2,11 +2,7 @@
 using System.IO;
 using System.Linq;
 using Renci.SshNet.Abstractions;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests.Abstractions
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/Abstractions/SocketAbstraction_CanWrite.cs

@@ -1,10 +1,6 @@
 using System.Net.Sockets;
 using Renci.SshNet.Abstractions;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests.Abstractions
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/Abstractions/ThreadAbstraction_ExecuteThread.cs

@@ -1,10 +1,6 @@
 using System;
 using System.Threading;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 using Renci.SshNet.Abstractions;
 
 namespace Renci.SshNet.Tests.Abstractions

+ 0 - 4
test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Started.cs

@@ -1,9 +1,5 @@
 using System;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Starting.cs

@@ -1,9 +1,5 @@
 using System;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Stopped.cs

@@ -1,9 +1,5 @@
 using System;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/ForwardedPortStatusTest_Stopping.cs

@@ -1,9 +1,5 @@
 using System;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests
 {

+ 0 - 4
test/Renci.SshNet.Shared.Tests/SshMessageFactoryTest.cs

@@ -8,11 +8,7 @@ using Renci.SshNet.Messages;
 using Renci.SshNet.Messages.Authentication;
 using Renci.SshNet.Messages.Connection;
 using Renci.SshNet.Messages.Transport;
-#if SILVERLIGHT
-using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
-#else
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-#endif
 
 namespace Renci.SshNet.Tests
 {

+ 0 - 2
test/Renci.SshNet.Tests/Classes/Sftp/SftpFileReaderTest_Dispose_SftpSessionIsOpen_EndCloseThrowsException.cs

@@ -5,9 +5,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
 
 using Moq;
 
-#if !FEATURE_EVENTWAITHANDLE_DISPOSE
 using Renci.SshNet.Common;
-#endif // !FEATURE_EVENTWAITHANDLE_DISPOSE
 using Renci.SshNet.Sftp;
 
 using BufferedRead = Renci.SshNet.Sftp.SftpFileReader.BufferedRead;