Permalink
Browse files

Update tests - been too long, slacking

Removed tests that use BFGMiner to list devices - too fragile, limit tests to MuM
  • Loading branch information...
1 parent b8d74f5 commit 818fc0f4d2e2ac1a538a7f085a683892b1959cbc @nwoolls committed Nov 21, 2014
Showing with 99 additions and 120 deletions.
  1. +1 −1 MultiMiner.CoinWarz.Tests/MultiMiner.CoinWarz.Tests.csproj
  2. +8 −18 MultiMiner.Coinbase.Tests/ApiContextTests.cs
  3. +5 −1 MultiMiner.Coinbase.Tests/MultiMiner.Coinbase.Tests.csproj
  4. +1 −1 MultiMiner.Discovery.Tests/MultiMiner.Discovery.Tests.csproj
  5. +14 −8 {MultiMiner.Xgminer.Tests → MultiMiner.Engine.Tests}/InstallerTests.cs
  6. +8 −1 MultiMiner.Engine.Tests/MultiMiner.Engine.Tests.csproj
  7. +8 −3 MultiMiner.MobileMiner.Tests/ApiContextTests.cs
  8. +1 −1 MultiMiner.MobileMiner.Tests/MultiMiner.MobileMiner.Tests.csproj
  9. +1 −1 MultiMiner.Remoting.Tests/MultiMiner.Remoting.Tests.csproj
  10. +6 −19 MultiMiner.Services.Tests/DevicesServiceTests.cs
  11. +1 −1 MultiMiner.Services.Tests/MultiMiner.Services.Tests.csproj
  12. +1 −1 MultiMiner.Services/DevicesService.cs
  13. +1 −1 MultiMiner.Stats.Tests/MultiMiner.Stats.Tests.csproj
  14. +26 −2 MultiMiner.Tests.sln
  15. +1 −1 MultiMiner.Update.Tests/MultiMiner.Update.Tests.csproj
  16. +1 −1 MultiMiner.Utility.Tests/MultiMiner.Utility.Tests.csproj
  17. +1 −0 MultiMiner.Utility.Tests/Networking/IPRangeTests.cs
  18. +3 −3 MultiMiner.Utility.Tests/Networking/LocalNetworkTests.cs
  19. +1 −0 MultiMiner.Utility.Tests/Networking/PortScannerTests.cs
  20. +1 −1 MultiMiner.Win/Forms/MinerForm.cs
  21. +1 −1 MultiMiner.Xgminer.Discovery.Tests/MultiMiner.Xgminer.Discovery.Tests.csproj
  22. +7 −51 MultiMiner.Xgminer.Tests/MinerTests.cs
  23. +0 −1 MultiMiner.Xgminer.Tests/MultiMiner.Xgminer.Tests.csproj
  24. +1 −2 MultiMiner.Xgminer/Miner.cs
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.CoinWarz.Api.Tests</RootNamespace>
<AssemblyName>MultiMiner.CoinWarz.Api.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -1,6 +1,9 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MultiMiner.Coinbase.Data;
+using System.Collections.Generic;
+using MultiMiner.ExchangeApi.Data;
+using System.Linq;
namespace MultiMiner.Coinbase.Tests
{
@@ -11,26 +14,13 @@ public class ApiContextTests
public void GetSellPrices_ReturnsSellPrices()
{
//arrange
- SellPrices sellPrices;
+ IEnumerable<ExchangeInformation> exchangeInformation;
//act
- sellPrices = ApiContext.GetSellPrices();
+ exchangeInformation = (new ApiContext()).GetExchangeInformation();
//assert
- Assert.IsTrue(sellPrices.Subtotal.Amount > 0);
- }
-
- [TestMethod]
- public void GetSellPrices_SubtotalGreaterThanTotal()
- {
- //arrange
- SellPrices sellPrices;
-
- //act
- sellPrices = ApiContext.GetSellPrices();
-
- //assert
- Assert.IsTrue(sellPrices.Subtotal.Amount > sellPrices.Total.Amount);
+ Assert.IsTrue(exchangeInformation.Sum(sp => sp.ExchangeRate) > 0);
}
[TestMethod]
@@ -40,7 +30,7 @@ public void GetInfoUrl_ReturnsUrl()
string url;
//act
- url = ApiContext.GetInfoUrl();
+ url = (new ApiContext()).GetInfoUrl();
//assert
Assert.IsTrue(url.StartsWith("http"));
@@ -53,7 +43,7 @@ public void GetApiName_ReturnsValue()
string name;
//act
- name = ApiContext.GetApiName();
+ name = (new ApiContext()).GetApiName();
//assert
Assert.IsFalse(String.IsNullOrEmpty(name));
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Coinbase.Api.Tests</RootNamespace>
<AssemblyName>MultiMiner.Coinbase.Api.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -61,6 +61,10 @@
<Project>{95f6c880-7ab3-441b-8d41-28c0ad507b62}</Project>
<Name>MultiMiner.Coinbase</Name>
</ProjectReference>
+ <ProjectReference Include="..\MultiMiner.ExchangeApi\MultiMiner.ExchangeApi.csproj">
+ <Project>{dce499f9-0751-4088-b45b-67ae0e612362}</Project>
+ <Name>MultiMiner.ExchangeApi</Name>
+ </ProjectReference>
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Discovery.Tests</RootNamespace>
<AssemblyName>MultiMiner.Discovery.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -1,12 +1,18 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
+using System.Collections.Generic;
+using MultiMiner.Engine.Data;
+using MultiMiner.Engine.Installers;
+using System.Linq;
-namespace MultiMiner.Xgminer.Tests
+namespace MultiMiner.Engine.Tests
{
[TestClass]
public class InstallerTests
{
+ const string UserAgent = "MultiMiner/V3-Example";
+
[TestMethod]
public void InstallMiner_Bfgminer_InstallsBfgminer()
{
@@ -17,7 +23,9 @@ public void InstallMiner_Bfgminer_InstallsBfgminer()
string executablePath = Path.Combine(minerPath, "bfgminer.exe");
//act
- Xgminer.Installer.InstallMiner(minerPath);
+ List<AvailableMiner> availableMiners = AvailableMiners.GetAvailableMiners(UserAgent);
+ AvailableMiner bfgminer = availableMiners.Single(am => am.Name.Equals(MinerNames.BFGMiner, StringComparison.OrdinalIgnoreCase));
+ MinerInstaller.InstallMiner(UserAgent, bfgminer, minerPath);
//assert
Assert.IsTrue(File.Exists(executablePath));
@@ -28,14 +36,12 @@ public void InstallMiner_Bfgminer_InstallsBfgminer()
[TestMethod]
public void GetAvailableMinerVersion_Succeeds()
- {
- //arrange
- string availableMinerVersion;
-
+ {
//act
Version version = null;
- availableMinerVersion = Xgminer.Installer.GetAvailableMinerVersion();
- bool success = Version.TryParse(availableMinerVersion, out version);
+ List<AvailableMiner> availableMiners = AvailableMiners.GetAvailableMiners(UserAgent);
+ AvailableMiner bfgminer = availableMiners.Single(am => am.Name.Equals(MinerNames.BFGMiner, StringComparison.OrdinalIgnoreCase));
+ bool success = Version.TryParse(bfgminer.Version, out version);
//assert
Assert.IsTrue(success);
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Engine.Tests</RootNamespace>
<AssemblyName>MultiMiner.Engine.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -53,8 +53,15 @@
</Otherwise>
</Choose>
<ItemGroup>
+ <Compile Include="InstallerTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\MultiMiner.Engine\MultiMiner.Engine.csproj">
+ <Project>{845687bb-ec47-46d3-ac9d-6fcfb63de8f5}</Project>
+ <Name>MultiMiner.Engine</Name>
+ </ProjectReference>
+ </ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
@@ -57,8 +57,13 @@ public void SubmitMiningStatistics_ZeroLength_ReturnsBadRequest()
[TestMethod]
public void SubmitNotifications_Succeeds()
{
- List<string> notifications = new List<string>();
- notifications.Add(String.Empty);
+ List<Notification> notifications = new List<Notification>();
+ notifications.Add(new Notification()
+ {
+ MachineName = Environment.MachineName,
+ NotificationKind = NotificationKind.Information,
+ NotificationText = String.Empty
+ });
DateTime start = DateTime.Now;
ApiContext.SubmitNotifications(apiUrl, devApiKey, userEmail, userAppKey, notifications);
@@ -69,7 +74,7 @@ public void SubmitNotifications_Succeeds()
public void GetCommands_ReturnsCommands()
{
DateTime start = DateTime.Now;
- List<RemoteCommand> commands = ApiContext.GetCommands(apiUrl, devApiKey, userEmail, userAppKey, Environment.MachineName);
+ List<RemoteCommand> commands = ApiContext.GetCommands(apiUrl, devApiKey, userEmail, userAppKey, new List<string>() { Environment.MachineName });
Assert.IsTrue((DateTime.Now - start).TotalSeconds < apiSecondsError);
}
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.MobileMiner.Api.Tests</RootNamespace>
<AssemblyName>MultiMiner.MobileMiner.Api.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Remoting.Server.Tests</RootNamespace>
<AssemblyName>MultiMiner.Remoting.Server.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -2,6 +2,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using System.Collections.Generic;
+using System.Reflection;
namespace MultiMiner.Services.Tests
{
@@ -13,30 +14,16 @@ public class DevicesServiceTests
[ClassInitialize()]
public static void MyClassInitialize(TestContext testContext)
{
- //bfgminer is used because it works with Block Erupters in a VM
- string tempPath = Path.GetTempPath();
- string minerPath = Path.Combine(tempPath, Guid.NewGuid().ToString());
- Directory.CreateDirectory(minerPath);
- executablePath = Path.Combine(minerPath, "bfgminer.exe");
- Xgminer.Installer.InstallMiner(minerPath);
+ string executingDirectory = AppDomain.CurrentDomain.BaseDirectory;
+ string solutionDirectory = new DirectoryInfo(executingDirectory).Parent.Parent.Parent.FullName;
+ string minersDirectory = Path.Combine(Path.Combine(Path.Combine(Path.Combine(solutionDirectory, "MultiMiner.Win"), "bin"), "debug"), "Miners");
+
+ executablePath = Path.Combine(Path.Combine(minersDirectory, "BFGMiner"), "bfgminer.exe");
}
[ClassCleanup()]
public static void MyClassCleanup()
{
- Directory.Delete(Path.GetDirectoryName(executablePath), true);
- }
-
- [TestMethod]
- public void GetDevices_ReturnsDevices()
- {
- Engine.Data.Configuration.Xgminer minerConfiguration = new Engine.Data.Configuration.Xgminer();
- minerConfiguration.StratumProxy = true;
-
- DevicesService service = new DevicesService(minerConfiguration);
- List<Xgminer.Data.Device> devices = service.GetDevices(executablePath);
-
- Assert.IsTrue(devices.Count >= 1);
}
}
}
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Services.Tests</RootNamespace>
<AssemblyName>MultiMiner.Services.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -20,7 +20,7 @@ public DevicesService()
this.xgminerConfiguration.LoadMinerConfiguration();
}
- public List<Device> GetDevices(MinerDescriptor minerDescriptor, string executablePath)
+ public List<Device> GetDevices(string executablePath)
{
Xgminer.Data.Configuration.Miner minerConfiguration = new Xgminer.Data.Configuration.Miner()
{
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Stats.Api.Tests</RootNamespace>
<AssemblyName>MultiMiner.Stats.Api.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
View
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
+# Visual Studio 14
+VisualStudioVersion = 14.0.22310.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.Xgminer", "MultiMiner.Xgminer\MultiMiner.Xgminer.csproj", "{0DBEF993-1B34-4D80-AB6A-F662604325DC}"
EndProject
@@ -71,6 +71,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.Xgminer.Discover
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.Xgminer.Discovery.Tests", "MultiMiner.Xgminer.Discovery.Tests\MultiMiner.Xgminer.Discovery.Tests.csproj", "{432C7680-B8C3-453B-AA55-850D0254EE87}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.ExchangeApi", "MultiMiner.ExchangeApi\MultiMiner.ExchangeApi.csproj", "{DCE499F9-0751-4088-B45B-67AE0E612362}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.Blockchain", "MultiMiner.Blockchain\MultiMiner.Blockchain.csproj", "{73C7F5AA-1BD3-49D2-90AB-96E3903C05CD}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.MultipoolApi", "MultiMiner.MultipoolApi\MultiMiner.MultipoolApi.csproj", "{4AF4B34A-07DB-456B-9C58-B0863435FE54}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiMiner.NiceHash", "MultiMiner.NiceHash\MultiMiner.NiceHash.csproj", "{5A05D03D-7006-406C-84B0-A2717A07CEB7}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -209,6 +217,22 @@ Global
{432C7680-B8C3-453B-AA55-850D0254EE87}.Debug|Any CPU.Build.0 = Debug|Any CPU
{432C7680-B8C3-453B-AA55-850D0254EE87}.Release|Any CPU.ActiveCfg = Release|Any CPU
{432C7680-B8C3-453B-AA55-850D0254EE87}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DCE499F9-0751-4088-B45B-67AE0E612362}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DCE499F9-0751-4088-B45B-67AE0E612362}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DCE499F9-0751-4088-B45B-67AE0E612362}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DCE499F9-0751-4088-B45B-67AE0E612362}.Release|Any CPU.Build.0 = Release|Any CPU
+ {73C7F5AA-1BD3-49D2-90AB-96E3903C05CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {73C7F5AA-1BD3-49D2-90AB-96E3903C05CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {73C7F5AA-1BD3-49D2-90AB-96E3903C05CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {73C7F5AA-1BD3-49D2-90AB-96E3903C05CD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4AF4B34A-07DB-456B-9C58-B0863435FE54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4AF4B34A-07DB-456B-9C58-B0863435FE54}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4AF4B34A-07DB-456B-9C58-B0863435FE54}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4AF4B34A-07DB-456B-9C58-B0863435FE54}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5A05D03D-7006-406C-84B0-A2717A07CEB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5A05D03D-7006-406C-84B0-A2717A07CEB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5A05D03D-7006-406C-84B0-A2717A07CEB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5A05D03D-7006-406C-84B0-A2717A07CEB7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Update.Tests</RootNamespace>
<AssemblyName>MultiMiner.Update.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -8,7 +8,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiMiner.Utility.Tests</RootNamespace>
<AssemblyName>MultiMiner.Utility.Tests</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Net;
using System.Linq;
+using MultiMiner.Utility.Net;
namespace MultiMiner.Utility.Networking.Tests
{
@@ -11,7 +11,7 @@ public void GetLocalIPAddress_Succeeds()
{
string localIPAddress = String.Empty;
- localIPAddress = Utility.Networking.LocalNetwork.GetLocalIPAddress();
+ localIPAddress = Utility.Net.LocalNetwork.GetLocalIPAddress();
Assert.IsTrue(!String.IsNullOrEmpty(localIPAddress));
}
@@ -21,7 +21,7 @@ public void GetLocalIPAddressRange_Succeeds()
{
string localIPAddressRange = String.Empty;
- localIPAddressRange = Utility.Networking.LocalNetwork.GetLocalIPAddressRange();
+ localIPAddressRange = Utility.Net.LocalNetwork.GetLocalIPAddressRange();
Assert.IsTrue(!String.IsNullOrEmpty(localIPAddressRange));
}
@@ -31,7 +31,7 @@ public void GetWorkGroupName_Succeeds()
{
string workGroupName = String.Empty;
- workGroupName = Utility.Networking.LocalNetwork.GetWorkGroupName();
+ workGroupName = Utility.Net.LocalNetwork.GetWorkGroupName();
Assert.IsTrue(!String.IsNullOrEmpty(workGroupName));
}
@@ -1,6 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.Collections.Generic;
+using MultiMiner.Utility.Net;
namespace MultiMiner.Utility.Networking.Tests
{
Oops, something went wrong.

0 comments on commit 818fc0f

Please sign in to comment.