Пример #1
0
 public void Given_a_fully_qualified_international_phoneNumbers_Should_return_both_GSM_and_normailized_local_number(string input, string expectedInternational, string expectedLocal)
 {
     var sut = new ContactPhoneNumber(input, "test");
     var expected = new[] {expectedInternational, expectedLocal};
     CollectionAssert.AreEqual(expected, sut.NormalizedHandle());
 }
Пример #2
0
 public void Given_a_local_phoneNumbers_Should_return_just_the_normalized_local_number(string input, string expected)
 {
     var sut = new ContactPhoneNumber(input, "test");
     Assert.AreEqual(expected, sut.NormalizedHandle().Single());
 }