Пример #1
0
 public void ParseShouldThrowWhenNumberIsInvalid(string value)
 {
     Assert.Throws <FormatException>(() => PhoneNumber.Parse(value));
 }
Пример #2
0
        public void ParseWithValidNumber(string value)
        {
            var number = PhoneNumber.Parse(value);

            Assert.Equal("256700192133", number);
        }