ToString() public method

public ToString ( ) : string
return string
Example #1
0
        public void testSensitivityConstructor()
        {
            SocSecNum theSSN = new SocSecNum(true);

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

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

            Assert.AreEqual("123456789", theSSN.ToString(), "Expected 123456789");
        }
Example #4
0
 public void testToString()
 {
     SocSecNum theSSN = new SocSecNum("123456789");
     Assert.AreEqual("123456789", theSSN.ToString(), "Expected 123456789");
 }
Example #5
0
 public void testSensitivityConstructor()
 {
     SocSecNum theSSN = new SocSecNum(true);
     Assert.IsTrue(theSSN.Sensitive);
     Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
 }
Example #6
0
 public void testSensitiveSsn()
 {
     SocSecNum theSSN = new SocSecNum("*SENSITIVE*");
     Assert.IsTrue(theSSN.Sensitive);
     Assert.IsTrue(theSSN.SensitivityString == theSSN.ToString());
 }