toHyphenatedString() public method

public toHyphenatedString ( ) : string
return string
示例#1
0
        public void testToHyphenatedString()
        {
            SocSecNum theSSN = new SocSecNum("123456789");

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