Пример #1
0
 public void Test_CheckEmailByString_False(string source)
 {
     Assert.IsFalse(TouTouRegex.CheckEmailByString(source));
 }
Пример #2
0
 public void Test_CheckURLByString_True(string source)
 {
     Assert.IsTrue(TouTouRegex.CheckURLByString(source));
 }
Пример #3
0
 public void Test_Substring(string source, string startStr, string endStr, string result)
 {
     Assert.AreEqual(TouTouRegex.Substring(source, startStr, endStr), result);
 }
Пример #4
0
 public void Test_CheckLength(string source, int length)
 {
     Assert.IsTrue(TouTouRegex.CheckLengthByString(source, length));
 }
Пример #5
0
 public void Test_CheckNumber_False(string source)
 {
     Assert.IsFalse(TouTouRegex.CheckNumberByString(source));
 }
Пример #6
0
        public void Test_GetAllNumber(string source, int count)
        {
            var results = TouTouRegex.GetAllNumberByString(source);

            Assert.AreEqual(results.Count, count);
        }
Пример #7
0
 public void Test_GetLastNumber(string source, string number)
 {
     Assert.AreEqual(TouTouRegex.GetLastNumberByString(source), number);
 }