コード例 #1
0
 public void MatchComponentsTest()
 {
     string field = "Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\"";
     ContentTypePattern pattern = new ContentTypePattern();
     Match match = pattern.RegularExpression.Match(field);
     Assert.That(match.Value, Iz.EqualTo("Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\""));
 }
コード例 #2
0
 public void MatchTesst()
 {
     string field = "Content-Type: Multipart/Mixed;boundary=\"Boundary-00=_T7P340MWKGMMYJ0CCJD0\"";
     ContentTypePattern pattern = new ContentTypePattern();
     Assert.That(pattern.RegularExpression.IsMatch(field), Iz.True);
 }