Skip to content

Commit 7dba7ce

Browse files
More test cases for #764
1 parent a9241b6 commit 7dba7ce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

projects/client/Unit/src/unit/TestAmqpUri.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,21 @@ public void TestAmqpUriParseSucceed()
142142
"user", "pass",
143143
IPv6Loopbacks,
144144
100, "/");
145+
146+
ParseSuccess("amqps://user:pass@host",
147+
"user", "pass", "host", 5671, "/", true);
148+
ParseSuccess("amqps://user:pass@host:100",
149+
"user", "pass", "host", 100, "/", true);
150+
ParseSuccess("amqps://user:pass@localhost:100",
151+
"user", "pass", "localhost", 100, "/", true);
152+
ParseSuccess("amqps://user:pass@[::1]",
153+
"user", "pass",
154+
IPv6Loopbacks,
155+
5671, "/", true);
156+
ParseSuccess("amqps://user:pass@[::1]:100",
157+
"user", "pass",
158+
IPv6Loopbacks,
159+
100, "/", true);
145160
}
146161
}
147162

0 commit comments

Comments
 (0)