From 51b62109af32b1ca14ac6de4b9254d9d6cbd4b18 Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:15:13 +0000 Subject: [PATCH 1/7] Update PhoneNumber_ToString_Europe_Tests.cs --- .../PhoneNumber_ToString_Europe_Tests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index ace498a8..03924017 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -334,14 +334,26 @@ public void Romania_Numbers(string input, string format, string expected) => [InlineData("+37858001110", "E.123", "+378 58 001110")] // IP Telephony [InlineData("+37866661212", "E.123", "+378 66 661212")] // Mobile [InlineData("+378882555", "E.123", "+378 882555")] // Landline without Italian NDC + [InlineData("+378054988", "E.123", "+378 0549 88")] // Landline with Italian NDC + [InlineData("+3780549882", "E.123", "+378 0549 882")] // Landline with Italian NDC + [InlineData("+37805498825", "E.123", "+378 0549 8825")] // Landline with Italian NDC + [InlineData("+378054988255", "E.123", "+378 0549 88255")] // Landline with Italian NDC [InlineData("+3780549882555", "E.123", "+378 0549 882555")] // Landline with Italian NDC [InlineData("+37858001110", "N", "58 001110")] // IP Telephony [InlineData("+37866661212", "N", "66 661212")] // Mobile [InlineData("+378882555", "N", "882555")] // Landline without Italian NDC + [InlineData("+378054988", "N", "(0549) 88")] // Landline with Italian NDC + [InlineData("+3780549882", "N", "(0549) 882")] // Landline with Italian NDC + [InlineData("+37805498825", "N", "(0549) 8825")] // Landline with Italian NDC + [InlineData("+378054988255", "N", "(0549) 88255")] // Landline with Italian NDC [InlineData("+3780549882555", "N", "(0549) 882555")] // Landline with Italian NDC [InlineData("+37858001110", "RFC3966", "tel:+378-58-001110")] // IP Telephony [InlineData("+37866661212", "RFC3966", "tel:+378-66-661212")] // Mobile [InlineData("+378882555", "RFC3966", "tel:+378-882555")] // Landline without Italian NDC + [InlineData("+378054988", "ERFC3966", "tel:+378-0549-88")] // Landline with Italian NDC + [InlineData("+3780549882", "RFC3966", "tel:+378-0549-882")] // Landline with Italian NDC + [InlineData("+37805498825", "RFC3966", "tel:+378-0549-8825")] // Landline with Italian NDC + [InlineData("+378054988255", "RFC3966", "tel:+378-0549-88255")] // Landline with Italian NDC [InlineData("+3780549882555", "RFC3966", "tel:+378-0549-882555")] // Landline with Italian NDC public void SanMarino_Numbers(string input, string format, string expected) => Assert.Equal(expected, PhoneNumber.Parse(input).ToString(format)); From 0839e1f6d34919a4c60f2fbc43f809f78e4dde90 Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:23:37 +0000 Subject: [PATCH 2/7] Update PhoneNumber_ToString_Europe_Tests.cs --- test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index 03924017..de194fa2 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -411,6 +411,9 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "E.123", "+46 90 678 55 00")] [InlineData("+4664067855", "E.123", "+46 640 678 55")] [InlineData("+46640678550", "E.123", "+46 640 67 85 50")] + [InlineData("+46201234", "N", "020 1234")] + [InlineData("+462012345", "N", "020 123 45")] + [InlineData("+4620123456", "N", "020 123 456")] [InlineData("+468678550", "N", "(08) 67 85 50")] [InlineData("+4686785500", "N", "(08) 678 55 00")] [InlineData("+46867855001", "N", "(08) 678 550 01")] From ef14529c9c692f58457143b7612643db92632d59 Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:24:53 +0000 Subject: [PATCH 3/7] Update PhoneNumber_ToString_Europe_Tests.cs --- .../PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index de194fa2..f136895e 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -402,6 +402,9 @@ public void Spain_Numbers(string input, string format, string expected) => Assert.Equal(expected, PhoneNumber.Parse(input).ToString(format)); [Theory] + [InlineData("+46201234", "E.123", "+46 20 1234")] + [InlineData("+462012345", "E.123", "+46 20 123 45")] + [InlineData("+4620123456", "E.123", "+46 20 123 456")] [InlineData("+468678550", "E.123", "+46 8 67 85 50")] [InlineData("+4686785500", "E.123", "+46 8 678 55 00")] [InlineData("+46867855001", "E.123", "+46 8 678 550 01")] @@ -423,6 +426,9 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "N", "(090) 678 55 00")] [InlineData("+4664067855", "N", "(0640) 678 55")] [InlineData("+46640678550", "N", "(0640) 67 85 50")] + [InlineData("+46201234", "RFC3966", "tel:+46 20 1234")] + [InlineData("+462012345", "RFC3966", "tel:+46 20 123 45")] + [InlineData("+4620123456", "RFC3966", "tel:+46 20 123 456")] [InlineData("+468678550", "RFC3966", "tel:+46-8-67-85-50")] [InlineData("+4686785500", "RFC3966", "tel:+46-8-678-55-00")] [InlineData("+46867855001", "RFC3966", "tel:+46-8-678-550-01")] From 278577295ec21e013980e0611496a8c0d9e57bbc Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:29:34 +0000 Subject: [PATCH 4/7] Update PhoneNumber_ToString_Europe_Tests.cs --- test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index f136895e..a4367555 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -350,7 +350,7 @@ public void Romania_Numbers(string input, string format, string expected) => [InlineData("+37858001110", "RFC3966", "tel:+378-58-001110")] // IP Telephony [InlineData("+37866661212", "RFC3966", "tel:+378-66-661212")] // Mobile [InlineData("+378882555", "RFC3966", "tel:+378-882555")] // Landline without Italian NDC - [InlineData("+378054988", "ERFC3966", "tel:+378-0549-88")] // Landline with Italian NDC + [InlineData("+378054988", "RFC3966", "tel:+378-0549-88")] // Landline with Italian NDC [InlineData("+3780549882", "RFC3966", "tel:+378-0549-882")] // Landline with Italian NDC [InlineData("+37805498825", "RFC3966", "tel:+378-0549-8825")] // Landline with Italian NDC [InlineData("+378054988255", "RFC3966", "tel:+378-0549-88255")] // Landline with Italian NDC From e551c050c2e07e6621d119ba7136895e7f0ca5fb Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:30:09 +0000 Subject: [PATCH 5/7] Update PhoneNumber_ToString_Europe_Tests.cs --- .../PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index a4367555..18ea4d94 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -426,9 +426,9 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "N", "(090) 678 55 00")] [InlineData("+4664067855", "N", "(0640) 678 55")] [InlineData("+46640678550", "N", "(0640) 67 85 50")] - [InlineData("+46201234", "RFC3966", "tel:+46 20 1234")] - [InlineData("+462012345", "RFC3966", "tel:+46 20 123 45")] - [InlineData("+4620123456", "RFC3966", "tel:+46 20 123 456")] + [InlineData("+46201234", "RFC3966", "tel:+46-20-1234")] + [InlineData("+462012345", "RFC3966", "tel:+46-20-123-45")] + [InlineData("+4620123456", "RFC3966", "tel:+46-20-123-456")] [InlineData("+468678550", "RFC3966", "tel:+46-8-67-85-50")] [InlineData("+4686785500", "RFC3966", "tel:+46-8-678-55-00")] [InlineData("+46867855001", "RFC3966", "tel:+46-8-678-550-01")] From 47b3fa8df726b15e88ae403d4d96ae1fda0771ac Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 11:30:52 +0000 Subject: [PATCH 6/7] Update PhoneNumber_ToString_Europe_Tests.cs --- .../PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index 18ea4d94..aa93d5f4 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -404,7 +404,7 @@ public void Spain_Numbers(string input, string format, string expected) => [Theory] [InlineData("+46201234", "E.123", "+46 20 1234")] [InlineData("+462012345", "E.123", "+46 20 123 45")] - [InlineData("+4620123456", "E.123", "+46 20 123 456")] + [InlineData("+4620123456", "E.123", "+46 20 12 34 56")] [InlineData("+468678550", "E.123", "+46 8 67 85 50")] [InlineData("+4686785500", "E.123", "+46 8 678 55 00")] [InlineData("+46867855001", "E.123", "+46 8 678 550 01")] @@ -416,7 +416,7 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46640678550", "E.123", "+46 640 67 85 50")] [InlineData("+46201234", "N", "020 1234")] [InlineData("+462012345", "N", "020 123 45")] - [InlineData("+4620123456", "N", "020 123 456")] + [InlineData("+4620123456", "N", "020 12 34 56")] [InlineData("+468678550", "N", "(08) 67 85 50")] [InlineData("+4686785500", "N", "(08) 678 55 00")] [InlineData("+46867855001", "N", "(08) 678 550 01")] @@ -428,7 +428,7 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46640678550", "N", "(0640) 67 85 50")] [InlineData("+46201234", "RFC3966", "tel:+46-20-1234")] [InlineData("+462012345", "RFC3966", "tel:+46-20-123-45")] - [InlineData("+4620123456", "RFC3966", "tel:+46-20-123-456")] + [InlineData("+4620123456", "RFC3966", "tel:+46-20-12-34-56")] [InlineData("+468678550", "RFC3966", "tel:+46-8-67-85-50")] [InlineData("+4686785500", "RFC3966", "tel:+46-8-678-55-00")] [InlineData("+46867855001", "RFC3966", "tel:+46-8-678-550-01")] From 25f04180e4ef7dec09914b4426964ce5756a02bf Mon Sep 17 00:00:00 2001 From: Trevor Pilley Date: Fri, 8 Nov 2024 13:27:17 +0000 Subject: [PATCH 7/7] Update PhoneNumber_ToString_Europe_Tests.cs --- .../PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs index aa93d5f4..59803bf7 100644 --- a/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs +++ b/test/PhoneNumbers.Tests/PhoneNumber_ToString_Europe_Tests.cs @@ -414,6 +414,8 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "E.123", "+46 90 678 55 00")] [InlineData("+4664067855", "E.123", "+46 640 678 55")] [InlineData("+46640678550", "E.123", "+46 640 67 85 50")] + [InlineData("+4690012345", "E.123", "+46 900 123 45")] + [InlineData("+46900123456", "E.123", "+46 900 12 34 56")] [InlineData("+46201234", "N", "020 1234")] [InlineData("+462012345", "N", "020 123 45")] [InlineData("+4620123456", "N", "020 12 34 56")] @@ -426,6 +428,8 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "N", "(090) 678 55 00")] [InlineData("+4664067855", "N", "(0640) 678 55")] [InlineData("+46640678550", "N", "(0640) 67 85 50")] + [InlineData("+4690012345", "N", "0900 123 45")] + [InlineData("+46900123456", "N", "0900 12 34 56")] [InlineData("+46201234", "RFC3966", "tel:+46-20-1234")] [InlineData("+462012345", "RFC3966", "tel:+46-20-123-45")] [InlineData("+4620123456", "RFC3966", "tel:+46-20-12-34-56")] @@ -438,6 +442,8 @@ public void Spain_Numbers(string input, string format, string expected) => [InlineData("+46906785500", "RFC3966", "tel:+46-90-678-55-00")] [InlineData("+4664067855", "RFC3966", "tel:+46-640-678-55")] [InlineData("+46640678550", "RFC3966", "tel:+46-640-67-85-50")] + [InlineData("+4690012345", "RFC3966", "tel:+46-900-123-45")] + [InlineData("+46900123456", "RFC3966", "tel:+46-900-12-34-56")] public void Sweden_Numbers(string input, string format, string expected) => Assert.Equal(expected, PhoneNumber.Parse(input).ToString(format));