Exemplo n.º 1
0
        public void Matches_JObject_ReturnsFalse()
        {
            OfTypeArrayConstraint constraint = new OfTypeArrayConstraint();

            Assert.That(constraint.Matches(new JObject(), null), Is.False);
        }
Exemplo n.º 2
0
        public void Describe_ReturnsDescribtion()
        {
            OfTypeArrayConstraint constraint = new OfTypeArrayConstraint();

            Assert.That(constraint.Describe().ToString(), Is.EqualTo("an array"));
        }
Exemplo n.º 3
0
        public void Matches_JArray_ReturnsTrue()
        {
            OfTypeArrayConstraint constraint = new OfTypeArrayConstraint();

            Assert.That(constraint.Matches(new JArray(), null), Is.True);
        }