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));
 }
 public void Describe_ReturnsDescribtion()
 {
     OfTypeNumberConstraint constraint = new OfTypeNumberConstraint(false);
     Assert.That(constraint.Describe().ToString(), Is.EqualTo("of type number (strict: False)"));
 }