tracks/csharp/exercises/phone-number/PhoneNumberTest.cs in trackler-2.2.1.151 vs tracks/csharp/exercises/phone-number/PhoneNumberTest.cs in trackler-2.2.1.152

- old
+ new

@@ -1,6 +1,6 @@ -// This file was auto-generated based on version 1.2.0 of the canonical data. +// This file was auto-generated based on version 1.4.0 of the canonical data. using Xunit; using System; public class PhoneNumberTest @@ -74,18 +74,32 @@ var phrase = "123-@:!-7890"; Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase)); } [Fact(Skip = "Remove to run test")] - public void Invalid_if_area_code_does_not_start_with_2_9() + public void Invalid_if_area_code_starts_with_0() { + var phrase = "(023) 456-7890"; + Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase)); + } + + [Fact(Skip = "Remove to run test")] + public void Invalid_if_area_code_starts_with_1() + { var phrase = "(123) 456-7890"; Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase)); } [Fact(Skip = "Remove to run test")] - public void Invalid_if_exchange_code_does_not_start_with_2_9() + public void Invalid_if_exchange_code_starts_with_0() { var phrase = "(223) 056-7890"; + Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase)); + } + + [Fact(Skip = "Remove to run test")] + public void Invalid_if_exchange_code_starts_with_1() + { + var phrase = "(223) 156-7890"; Assert.Throws<ArgumentException>(() => PhoneNumber.Clean(phrase)); } } \ No newline at end of file