コード例 #1
0
        public static void ShouldGetCompleteResidentialPhoneFormated()
        {
            string result = ResidentialPhoneFormatter.FormatCompleteResidentialPhone("554733251368");

            Assert.Equal("RES: +55 (47) 3325-1368", result);
        }
コード例 #2
0
        public static void ShouldGetResidentialWithoutCountryCodeFormated()
        {
            string result = ResidentialPhoneFormatter.FormatWithoutCountryCode("4733251368");

            Assert.Equal("RES: (47) 3325-1368", result);
        }
コード例 #3
0
        public static void ShouldGetBasicResidentialPhoneFormatted()
        {
            string result = ResidentialPhoneFormatter.FormatBasicPhone("33251368");

            Assert.Equal("RES: 3325-1368", result);
        }
コード例 #4
0
        public static void ShouldGetResidentialWithoutLeadingZeroFormated()
        {
            string result = ResidentialPhoneFormatter.FormatPhoneWithLeadingZero("04733251368");

            Assert.Equal("RES: (47) 3325-1368", result);
        }