public void SetMatch() { obj = obj.SetMatch("five", 5); Assert.Equal(5, obj.Matches["five"]); obj = obj.SetMatch("five", 8); Assert.Equal(8, obj.Matches["five"]); var rooted = obj.AsRoot.SetMatch("five", 6); Assert.Equal(6, rooted.Matches["five"]); }