ToString() public method

public ToString ( ) : string
return string
コード例 #1
0
        public void testSensitivityConstructor()
        {
            SocSecNum theSSN = new SocSecNum(true);

            Assert.IsTrue(theSSN.Sensitive);
            Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
        }
コード例 #2
0
        public void testSensitiveSsn()
        {
            SocSecNum theSSN = new SocSecNum("*SENSITIVE*");

            Assert.IsTrue(theSSN.Sensitive);
            Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
        }
コード例 #3
0
        public void testToString()
        {
            SocSecNum theSSN = new SocSecNum("123456789");

            Assert.AreEqual("123456789", theSSN.ToString(), "Expected 123456789");
        }
コード例 #4
0
ファイル: SocSecNumTest.cs プロジェクト: OSEHRA/mdo
 public void testToString()
 {
     SocSecNum theSSN = new SocSecNum("123456789");
     Assert.AreEqual("123456789", theSSN.ToString(), "Expected 123456789");
 }
コード例 #5
0
ファイル: SocSecNumTest.cs プロジェクト: OSEHRA/mdo
 public void testSensitivityConstructor()
 {
     SocSecNum theSSN = new SocSecNum(true);
     Assert.IsTrue(theSSN.Sensitive);
     Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
 }
コード例 #6
0
ファイル: SocSecNumTest.cs プロジェクト: OSEHRA/mdo
 public void testSensitiveSsn()
 {
     SocSecNum theSSN = new SocSecNum("*SENSITIVE*");
     Assert.IsTrue(theSSN.Sensitive);
     Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
 }