public void SyntaxParseDefault() { Energy.Core.Syntax syntax = Energy.Core.Syntax.Default; syntax.OnReset += Syntax_OnReset; syntax.Reset(); string value = syntax.Parse("{{A}}-{{B}}"); Assert.AreEqual("-", value); }
private Energy.Core.Syntax GetSyntaxReset() { lock (_Lock) { if (_Syntax == null) { _Syntax = new Energy.Core.Syntax(); } else { _Syntax.Reset(); } return(_Syntax); } }