servicepoint-binding-csharp/ServicePoint.Tests/ConnectionTests.cs
2025-02-16 14:40:18 +01:00

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$§"));
}
}