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

            Assert.That(constraint.Matches(new JValue(value), null), Is.EqualTo(expected));
        }
        public void Describe_ReturnsDescribtion()
        {
            OfTypeIntegerConstraint constraint = new OfTypeIntegerConstraint(true);

            Assert.That(constraint.Describe().ToString(), Is.EqualTo("of type integer (strict: True)"));
        }