mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-19 18:20:12 +01:00
12 lines
301 B
C#
12 lines
301 B
C#
|
namespace ServicePoint.Tests;
|
||
|
|
||
|
public class ConnectionTests
|
||
|
{
|
||
|
[Fact]
|
||
|
public void InvalidHostnameThrows()
|
||
|
{
|
||
|
Assert.Throws<ServicePointException.IoException>(() => new Connection(""));
|
||
|
Assert.Throws<ServicePointException.IoException>(() => new Connection("-%6$§"));
|
||
|
}
|
||
|
}
|