From 188176b969d9ea5e150929a8476ba0aadc968a2f Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Tue, 12 Nov 2024 21:03:47 +0000 Subject: [PATCH] Update PhoneNumberExtensionsTests.cs Canada tests for 10 digit and 7 digit dialling NDCs --- test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs b/test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs index be2289af..93d248c7 100644 --- a/test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumberExtensionsTests.cs @@ -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,