| 12345678910111213141516171819202122232425262728 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- namespace Masuit.Tools.UnitTest
- {
- [TestClass]
- public class ExtensionMethodsTest
- {
- [TestMethod]
- public void MatchUrl_True()
- {
- bool expect = "https://git.lug.us-tc.edu.cn/masuit/soft".MatchUrl();
- Assert.AreEqual(true, expect);
- }
- [TestMethod]
- public void MatchEmail()
- {
- bool expect = "[email protected]".MatchEmail();
- Assert.AreEqual(true, expect);
- }
- [TestMethod]
- public void MatchIdentifyCard_False()
- {
- bool expect = "513901199509120610".MatchIdentifyCard();
- Assert.AreEqual(false, expect);
- }
- }
- }
|