示例#1
0
 public void AddMaskMoreCharsTest()
 {
     Assert.AreEqual(String.AddMask("0000000-00.0000.000.0000", "12345671212341231234123456"), "1234567-12.1234.123.1234123456");
 }
示例#2
0
 public void AddMaskNoCharsTest()
 {
     Assert.AreEqual(String.AddMask("0000000-00.0000.000.0000", ""), "");
 }
示例#3
0
 public void AddMaskLessCharsTest()
 {
     Assert.AreEqual(String.AddMask("0000000-00.0000.000.0000", "1234567121"), "1234567-12.1");
 }