public void String() { var literal = new GGLiteral("This is a string"); var actualLiteral = GGParser.Parse(literal.ToString()); Assert.Equal(literal, actualLiteral); }
public void Null() { var literal = new GGLiteral(null); var actualLiteral = GGParser.Parse(literal.ToString()); Assert.Equal(literal, actualLiteral); }
public void NumberDouble() { var literal = new GGLiteral(42.42); var actualLiteral = GGParser.Parse(literal.ToString()); Assert.Equal(literal, actualLiteral); literal = new GGLiteral(-42.42); actualLiteral = GGParser.Parse(literal.ToString()); Assert.Equal(literal, actualLiteral); }