diff --git a/UptimeSharp.Tests/ClientTest.cs b/UptimeSharp.Tests/ClientTest.cs index 9ce2142..62f6f62 100644 --- a/UptimeSharp.Tests/ClientTest.cs +++ b/UptimeSharp.Tests/ClientTest.cs @@ -1,6 +1,4 @@ using Xunit; -using System.Collections.Generic; -using UptimeSharp.Models; namespace UptimeSharp.Tests { @@ -12,7 +10,7 @@ namespace UptimeSharp.Tests [Fact] public void Initialize() { - Assert.Null(client.LastRequestData); + Assert.Null(client.lastResponseData); Assert.Equal(APIKey, client.ApiKey); } diff --git a/UptimeSharp.Tests/MonitorsTest.cs b/UptimeSharp.Tests/MonitorsTest.cs index b7435d4..388d15e 100644 --- a/UptimeSharp.Tests/MonitorsTest.cs +++ b/UptimeSharp.Tests/MonitorsTest.cs @@ -1,8 +1,7 @@ -using Xunit; -using System; -using System.Collections.Generic; -using UptimeSharp.Models; +using System.Collections.Generic; using System.Threading.Tasks; +using UptimeSharp.Models; +using Xunit; namespace UptimeSharp.Tests { @@ -80,15 +79,15 @@ namespace UptimeSharp.Tests items.ForEach(item => { - if(item.Name == "test_5") + if (item.Name == "test_5") { monitor = item; } }); Assert.True( - monitor != null - && monitor.UriString == "255.0.0.1" + monitor != null + && monitor.Uri == "255.0.0.1" && monitor.Type == Models.Type.Port && monitor.Subtype == Subtype.HTTP); } diff --git a/UptimeSharp.Tests/TestsBase.cs b/UptimeSharp.Tests/TestsBase.cs index 3495564..ba5c02c 100644 --- a/UptimeSharp.Tests/TestsBase.cs +++ b/UptimeSharp.Tests/TestsBase.cs @@ -1,7 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; using Xunit; @@ -31,7 +29,7 @@ namespace UptimeSharp.Tests { alertsToDelete.ForEach(async id => { - await client.DeleteAlert(id); + await client.DeleteAlert(id.ToString()); }); monitorsToDelete.ForEach(async id => { diff --git a/UptimeSharp.Tests/UptimeSharp.Tests.csproj b/UptimeSharp.Tests/UptimeSharp.Tests.csproj index 8792965..9c415b2 100644 --- a/UptimeSharp.Tests/UptimeSharp.Tests.csproj +++ b/UptimeSharp.Tests/UptimeSharp.Tests.csproj @@ -9,8 +9,9 @@ Properties UptimeSharp.Tests UptimeSharp.Tests - v4.0 + v4.5 512 + true @@ -20,6 +21,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -28,34 +30,27 @@ TRACE prompt 4 + false - ..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.dll + ..\packages\Microsoft.Bcl.Async.1.0.165\lib\net45\Microsoft.Threading.Tasks.dll - ..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.dll - - - ..\packages\Microsoft.Bcl.Async.1.0.16\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll - - - False - ..\packages\RestSharp.104.1\lib\net4\RestSharp.dll - - - False - ..\packages\ServiceStack.Text.3.9.58\lib\net35\ServiceStack.Text.dll + ..\packages\Microsoft.Bcl.Async.1.0.165\lib\net45\Microsoft.Threading.Tasks.Extensions.dll - - ..\packages\Microsoft.Bcl.1.0.19\lib\net40\System.Runtime.dll + + + ..\packages\Microsoft.Net.Http.2.2.18\lib\net45\System.Net.Http.Extensions.dll - - ..\packages\Microsoft.Bcl.1.0.19\lib\net40\System.Threading.Tasks.dll + + False + ..\packages\Microsoft.Net.Http.2.2.18\lib\net45\System.Net.Http.Primitives.dll + @@ -76,16 +71,16 @@ - - {af900acf-dc2a-40ac-9614-b7c8c12e114c} - UptimeSharp.OldClassLib + + {ec1e656d-4966-499a-9edd-9db56137bf62} + UptimeSharp - + - - + +