Formats code comments as sentences in the tests.

Capitalizes the first word and adds the terminal period in the unit, integration and security tests. The AAA markers stay bare, the TODO bodies stay lowercase, and no assertion, payload, expected status code or test signature changes.
This commit is contained in:
BinaryAlley committed 2026-11-16 18:17:29 +02:00
1 parent 727aa33318
commit 057f557791
540 files changed
+3888 -3888

No files matched your search

@@ -12,13 +12,13 @@ namespace Lumina.Infrastructure.UnitTests.Common.Networking;
public class PublicHostValidatorTests
{
[Theory]
[InlineData("coverartarchive.org")] // a public host name
[InlineData("example.com")] // a public host name
[InlineData("8.8.8.8")] // a public IPv4 address
[InlineData("1.1.1.1")] // a public IPv4 address
[InlineData("172.15.0.1")] // the address just below the private class B range
[InlineData("172.32.0.1")] // the address just above the private class B range
[InlineData("2606:4700:4700::1111")] // a public IPv6 address
[InlineData("coverartarchive.org")] // A public host name.
[InlineData("example.com")] // A public host name.
[InlineData("8.8.8.8")] // A public IPv4 address.
[InlineData("1.1.1.1")] // A public IPv4 address.
[InlineData("172.15.0.1")] // The address just below the private class B range.
[InlineData("172.32.0.1")] // The address just above the private class B range.
[InlineData("2606:4700:4700::1111")] // A public IPv6 address.
public void IsPublicHost_WhenTheHostIsPublic_ShouldReturnTrue(string host)
{
// Act
@@ -29,24 +29,24 @@ public class PublicHostValidatorTests
}
[Theory]
[InlineData("")] // an empty host
[InlineData(" ")] // only white space
[InlineData("localhost")] // the loopback host name
[InlineData("LOCALHOST")] // the loopback host name, upper cased
[InlineData("127.0.0.1")] // the IPv4 loopback address
[InlineData("::1")] // the IPv6 loopback address
[InlineData("[::1]")] // the IPv6 loopback address, bracketed like a URI host
[InlineData("0.0.0.0")] // the unspecified IPv4 address
[InlineData("[::]")] // the unspecified IPv6 address
[InlineData("169.254.169.254")] // the link local cloud metadata endpoint
[InlineData("10.0.0.5")] // a private class A address
[InlineData("172.16.0.1")] // the lower bound of the private class B range
[InlineData("172.31.255.255")] // the upper bound of the private class B range
[InlineData("192.168.1.10")] // a private class C address
[InlineData("100.64.0.1")] // the lower bound of the carrier grade NAT range
[InlineData("100.127.255.255")] // the upper bound of the carrier grade NAT range
[InlineData("fc00::1")] // the IPv6 unique local range
[InlineData("fe80::1")] // the IPv6 link local range
[InlineData("")] // An empty host.
[InlineData(" ")] // Only white space.
[InlineData("localhost")] // The loopback host name.
[InlineData("LOCALHOST")] // The loopback host name, upper cased.
[InlineData("127.0.0.1")] // The IPv4 loopback address.
[InlineData("::1")] // The IPv6 loopback address.
[InlineData("[::1]")] // The IPv6 loopback address, bracketed like a URI host.
[InlineData("0.0.0.0")] // The unspecified IPv4 address.
[InlineData("[::]")] // The unspecified IPv6 address.
[InlineData("169.254.169.254")] // The link local cloud metadata endpoint.
[InlineData("10.0.0.5")] // A private class A address.
[InlineData("172.16.0.1")] // The lower bound of the private class B range.
[InlineData("172.31.255.255")] // The upper bound of the private class B range.
[InlineData("192.168.1.10")] // A private class C address.
[InlineData("100.64.0.1")] // The lower bound of the carrier grade NAT range.
[InlineData("100.127.255.255")] // The upper bound of the carrier grade NAT range.
[InlineData("fc00::1")] // The IPv6 unique local range.
[InlineData("fe80::1")] // The IPv6 link local range.
public void IsPublicHost_WhenTheHostIsPrivateOrLocal_ShouldReturnFalse(string host)
{
// Act