public void When_the_number_of_items_match_the_expectation_it_should_allow_chaining_more_assertions()
        {
            // Arrange
            var subject = JToken.Parse("{ id: 42 }");

            // Act
            JTokenAssertions and = subject.Should().HaveCount(1).And;

            // Assert
            and.BeEquivalentTo(subject);
        }
        public static AndConstraint <JTokenAssertions> BeJsonEquivalentTo(
            this StringAssertions resultingJsonAssertion,
            string expectedJson)
        {
            var resultingString = resultingJsonAssertion.Subject;
            var resultingToken  = JToken.Parse(resultingString);
            var expectedToken   = JToken.Parse(expectedJson);

            var assertions = new JTokenAssertions(resultingToken);

            return(assertions.BeEquivalentTo(expectedToken));
        }