public void OneLineStatementTest() { var statement = new SolidityStatement(); statement.Add(line1); Assert.Equal(line1 + ";\n", statement.ToString()); }
public void NoSemicolonTest() { var statement = new SolidityStatement(); statement.Add(line1, false); Assert.Equal(line1 + "\n", statement.ToString()); }
public void FromListTest() { List <string> list = new List <string>(); list.Add(line1); list.Add(line2); var statement = new SolidityStatement(list); Assert.Equal(line1 + ";\n" + line2 + ";\n", statement.ToString()); }
public void EmptyStatementTest() { var statement = new SolidityStatement(); Assert.Equal("", statement.ToString()); }