icarus-consulting / Yaapii.Xambly

A port of Xembly library by Yegor Bugayenko. Lighweight XML parser, generator and manipulator.
MIT License
7 stars 0 forks source link

Unescaped() class has unsuspected behavior #132

Closed aveXcaesar closed 5 years ago

aveXcaesar commented 6 years ago

Expected Behavior

The following statement should be true:

new Unescaped(new Escaped("hello").AsString()).AsString() == "hello";

Actual Behavior

...but the statement new Unescaped(new Escaped("hello").AsString()).AsString(); is ell. The first and last characters are dropped.

Steps to reproduce the behavior

The log given by the failure.

Mention any other details that might be useful

I think there was a mistake by converting the Arg class to C#. The Unescaped() class should be refactored to not drop the first and last character.