Skip to content

Commit

Permalink
rem - Removed pinging tests (network-dependent)
Browse files Browse the repository at this point in the history
---

As the pinging tests have already been removed from the 0.1.x unit tests, why not remove them from here, too?

---

Type: rem
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 3, 2024
1 parent 822245d commit 8a7e85f
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions KSTests/Network/NetworkActionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,6 @@ namespace KSTests.Network
public class NetworkActionTests
{

/// <summary>
/// Tests pinging
/// </summary>
[Test]
[Description("Action")]
public void TestPingAddress()
{
NetworkTools.PingAddress("www.google.com").Status.ShouldBe(IPStatus.Success);
}

/// <summary>
/// Tests pinging with custom timeout
/// </summary>
[Test]
[Description("Action")]
public void TestPingAddressCustomTimeout()
{
NetworkTools.PingAddress("www.google.com", 60000).Status.ShouldBe(IPStatus.Success);
}

/// <summary>
/// Tests pinging with custom timeout and buffer
/// </summary>
[Test]
[Description("Action")]
public void TestPingAddressCustomTimeoutAndBuffer()
{
NetworkTools.PingAddress("www.google.com", 60000, System.Text.Encoding.Default.GetBytes("KS")).Status.ShouldBe(IPStatus.Success);
}

/// <summary>
/// Tests pinging with custom timeout and buffer
/// </summary>
Expand All @@ -73,4 +43,4 @@ public void TestGetFilenameFromUrl()
}

}
}
}

0 comments on commit 8a7e85f

Please sign in to comment.