toHyphenatedString() public méthode

public toHyphenatedString ( ) : string
Résultat string
Exemple #1
0
        public void testToHyphenatedString()
        {
            SocSecNum theSSN = new SocSecNum("123456789");

            Assert.AreEqual("123-45-6789", theSSN.toHyphenatedString(), "Expected 123-45-6789");
        }
Exemple #2
0
 public void testToHyphenatedString()
 {
     SocSecNum theSSN = new SocSecNum("123456789");
     Assert.AreEqual("123-45-6789", theSSN.toHyphenatedString(), "Expected 123-45-6789");
 }