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
ファイル: SocSecNumTest.cs プロジェクト: OSEHRA/mdo
 public void testToHyphenatedString()
 {
     SocSecNum theSSN = new SocSecNum("123456789");
     Assert.AreEqual("123-45-6789", theSSN.toHyphenatedString(), "Expected 123-45-6789");
 }