public void CanParseSimpleSubstitutionFile() { JsonPlusRoot ctx = ResUtility.GetEmbed("SimpleSub.jsonp"); var val = ctx.GetString("root.simple-string"); Assert.Equal("Hello world", val); }
public void SelfReferenceOptionalSubstitutionInValueConcatenationShouldBeIgnored() { var source = "a = ${?a}foo"; JsonPlusRoot root = null; var ex = Record.Exception(() => root = JsonPlusParser.Parse(source)); Assert.Null(ex); Assert.Equal("foo", root.GetString("a")); }