Skip to content

Commit 736e04b

Browse files
author
Francisco Liberal
committed
fix: Update test to match TryParseBaseUrl behavior (returns null, not throws)
1 parent 5358b4f commit 736e04b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ArcadeDotnet.Tests/ArcadeClientEdgeCasesTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ public void Constructor_Parameterless_WithInvalidEnvironmentBaseUrl_ShouldUseDef
144144

145145
try
146146
{
147-
// Act & Assert - Should throw because URL parsing fails
148-
Assert.Throws<UriFormatException>(() => new ArcadeClient());
147+
// Act - Invalid URL should be ignored and default used
148+
var client = new ArcadeClient();
149+
150+
// Assert - Should use default base URL
151+
Assert.Equal(new Uri(ArcadeClientOptions.DefaultBaseUrl), client.BaseUrl);
149152
}
150153
finally
151154
{

0 commit comments

Comments
 (0)