public void Should_parse_single_ValueNode() { var original = Value("x", "y"); var parsed = converter.Convert(original); var expected = Object("x", Value("xx", "parsed")); parsed.Should().Be(expected); }
public void Should_not_parse_when_condition_does_not_hold() { converter = new ValueParser(parser, _ => false); var original = Value("x", "y"); var parsed = converter.Convert(original); parsed.Should().BeSameAs(original); }