[Hosts]Ignore default ACME sample entries (#28163)

This commit is contained in:
Davide Giacometti
2023-09-05 13:13:41 +02:00
committed by GitHub
parent 83f0625427
commit 298a5eba2a
3 changed files with 16 additions and 1 deletions

View File

@@ -76,6 +76,8 @@ namespace Hosts.Tests
[DataRow("host 10.1.1.1")]
[DataRow("# comment 10.1.1.1 host # comment")]
[DataRow("10.1.1.1 host01 host02 host03 host04 host05 host06 host07 host08 host09 host10")]
[DataRow("102.54.94.97 rhino.acme.com # source server")]
[DataRow("38.25.63.10 x.acme.com # x client host")]
public void Not_Valid_Entry(string line)
{
var entry = new Entry(0, line);