public void Matches_NotSame_False()
        {
            string notSame = "{\"abc\"=123}";
            var subject = new JsonEqualConstraint("{'prop'='value'}");

            Assert.That(matches(subject, notSame), Is.False);
        }
        public void Matches_SameJsonified_False()
        {
            string jsonified = "{'prop'='value'}";
            var subject = new JsonEqualConstraint("{'prop'='value'}");

            Assert.That(matches(subject, jsonified), Is.False);
        }
        public void ApplyTo_SameProperJson_True()
        {
            string properJson = "{\"prop\"=\"value\"}";
            var subject = new JsonEqualConstraint("{'prop'='value'}");

            Assert.That(matches(subject, properJson), Is.True);
        }
        public void WriteMessageTo_DifferentJson_DelegateToEquals()
        {
            string expected = "{'prop'='value'}",
               actual = "{\"abcd\"=\"12345\"}";
            var subject = new JsonEqualConstraint(expected);
            var equals = new EqualConstraint(expected.Jsonify());

            Assert.That(getMessage(subject, actual),
                Is.EqualTo(getMessage(equals, actual)));
        }