Ejemplo n.º 1
0
            public void NationalUsaStandardFormat()
            {
                string phone    = "123-456-7890";
                string expected = @"<a class=""tel"" href=""tel:" + phone + @""">" + phone + "</a>";
                var    result   = SrkHtmlExtensions.CallLink(null, phone);

                Assert.AreEqual(expected, result.ToString());
            }
Ejemplo n.º 2
0
            public void InternationalFrenchStandardFormat()
            {
                string phone    = "+33 123456789";
                string expected = @"<a class=""tel"" href=""tel:" + phone + @""">" + phone + "</a>";
                var    result   = SrkHtmlExtensions.CallLink(null, phone);

                Assert.AreEqual(expected, result.ToString());
            }