public void TryParseShouldReturnNullWhenNumberIsInvalid(string value) { PhoneNumber.TryParse(value, out var number); Assert.Null(number); }
public void TryParseWithValidNumber(string value) { PhoneNumber.TryParse(value, out var number); Assert.Equal("256700192133", number); }
public void ParseShouldThrowWhenNumberIsInvalid(string value) { Assert.Throws <FormatException>(() => PhoneNumber.Parse(value)); }
public void ParseWithValidNumber(string value) { var number = PhoneNumber.Parse(value); Assert.Equal("256700192133", number); }