ToString() public method

public ToString ( ) : string
return string
Exemplo n.º 1
0
        public void testSensitivityConstructor()
        {
            SocSecNum theSSN = new SocSecNum(true);

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

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

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