private static void FormatPhoneNumbers() { IEnumerable <string> lines = File.ReadLines(@"InputData/input.4.in"); foreach (var(line, index) in lines.WithIndex()) { FeedBackPrinter.PrintInputPhone(phoneNumber: line, phoneNumberIndexOnList: index); string formattedPhone = PhoneFormatter.GetFormattedPhone(line); FeedBackPrinter.PrintOutputPhone(formattedPhone); } }
public static void ShouldNotFormatServiceProviders(string input) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(GetNotFoundString(input), result); }
public static void ShouldFormatNotGeographicPhone(string input, string output) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(result, output); }
public static void ShouldFormatServiceProviders(string input, string output) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(result, output); }
public static void ShouldNotFormatMobileNumbers(string input) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(GetNotFoundString(input), result); }
public static void ShouldFormatMobileNumbers(string input, string output) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(output, result); }
public static void ShouldNotFormatResidentialNumbers(string phoneNumber) { string result = PhoneFormatter.GetFormattedPhone(phoneNumber); Assert.Equal(GetNotFoundString(phoneNumber), result); }
public static void ShouldNotFormatNotGeographicPhone(string input) { string result = PhoneFormatter.GetFormattedPhone(input); Assert.Equal(GetNotFoundString(input), result); }