public void Matches_JObject_ReturnsFalse() { OfTypeNumberConstraint constraint = new OfTypeNumberConstraint(false); Assert.That(constraint.Matches(new JObject(), null), Is.False); }
public void Matches_Value_Returns(object value, bool strict, bool expected) { OfTypeNumberConstraint constraint = new OfTypeNumberConstraint(strict); Assert.That(constraint.Matches(new JValue(value), null), Is.EqualTo(expected)); }