public void TestSSNStyle()
        {
            var masker = new MaskedTextProvider();
            masker.MatchPattern = "###-##-####";

            Assert.AreEqual("1", masker.ReplaceString("1"));
            Assert.AreEqual("12", masker.ReplaceString("12"));
            Assert.AreEqual("123", masker.ReplaceString("123"));
            Assert.AreEqual("123", masker.ReplaceString("123-"));
            Assert.AreEqual("123-45", masker.ReplaceString("123-45"));
            Assert.AreEqual("123-45-6789", masker.ReplaceString("123-45-6789"));
            Assert.AreEqual("123-45-6789", masker.ReplaceString("123456789"));
        }
 public void TestPhoneStyle()
 {
     var masker = new MaskedTextProvider();
     masker.MatchPattern = "(###)###-####";
     Assert.AreEqual("(1", masker.ReplaceString("1"));
 }