Skip to content

Commit

Permalink
Update PhoneNumberExtensionsTests.cs
Browse files Browse the repository at this point in the history
Canada tests for 10 digit and 7 digit dialling NDCs
  • Loading branch information
TrevorPilley authored Nov 12, 2024
1 parent 6fe11ea commit 188176b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -66,6 +66,8 @@ public void NumberToDialFrom_PhoneNumber_Throws_If_CountryInfo_Null()
[InlineData("+393492525255", "+378882555", "0549882555")] // Italy to San Marino NonGeo without Italy NDC
[InlineData("+393492525255", "+378693247", "00378693247")] // Italy to San Marino Mobile
[InlineData("+393492525255", "+378598765", "00378598765")] // Italy to San Marino IP
[InlineData("+12497121234", "+12494185634", "2494185634")] // Canada within NDC, local dilling permitted, NDC required
[InlineData("+18797121234", "+18794185634", "4185634")] // Canada within NDC, local dilling permitted, NDC not required
public void NumberToDialFrom_PhoneNumber(string source, string destination, string expected) =>
Assert.Equal(
expected,

0 comments on commit 188176b

Please sign in to comment.