toString() public méthode

public toString ( ) : string
Résultat string
Exemple #1
0
        public void testtoString()
        {
            SocSecNum theSSN = new SocSecNum("123456789");

            Assert.AreEqual("123456789", theSSN.toString(), "Expected 123456789");
        }
Exemple #2
0
 public void testtoString()
 {
     SocSecNum theSSN = new SocSecNum("123456789");
     Assert.AreEqual("123456789", theSSN.toString(), "Expected 123456789");
 }