コード例 #1
0
 public static CapturedConstraint Match(this IValidatorConstraintFactory self, Regex expression)
     => self.Capture(new MatchStringConstraint(expression));
コード例 #2
0
 public static IWorldObject Capture(this IWorldObject wo)
 {
     return wo.Capture(REPlugin.Instance);
 }
コード例 #3
0
 public static CapturedConstraint EqualTo(this IBeConstraintFactory self, string value, StringComparison comparison = StringComparison.Ordinal)
     => self.Capture(new StringEqualsConstraint(value, comparison));
コード例 #4
0
 public static CapturedConstraint OfTypeArray(this IBeConstraintFactory self)
     => self.Capture(new OfTypeArrayConstraint());
コード例 #5
0
 public static CapturedConstraint OfTypeString(this IBeConstraintFactory self)
     => self.Capture(new OfTypeStringConstraint());
コード例 #6
0
 public static CapturedConstraint Boolean(this IBeConstraintFactory self, bool strict = true)
     => self.Capture(new OfTypeBooleanConstraint(strict));
コード例 #7
0
 public static CapturedConstraint Integer(this IBeConstraintFactory self, bool strict = true)
     => self.Capture(new OfTypeIntegerConstraint(strict));
コード例 #8
0
 public static CapturedConstraint Object(this IBeConstraintFactory self)
     => self.Capture(new OfTypeObjectConstraint());