public void TestJsonOutput() { CLCommand cmd = CLCommand.Create("CALL TEST 'VALUE' INVALID(*YES) DEBUG('NO')"); Console.WriteLine(cmd.ToJson()); Assert.Equal("{\"Name\":\"CALL\",\"Parameters\":[{\"Index\":1,\"Name\":\"*NONE\",\"Parameters\":[\"TEST\"],\"ParameterType\":3},{\"Index\":2,\"Name\":\"*NONE\",\"Parameters\":[\"VALUE\"],\"ParameterType\":2},{\"Index\":3,\"Name\":\"INVALID\",\"Parameters\":[\"*YES\"],\"ParameterType\":0},{\"Index\":4,\"Name\":\"DEBUG\",\"Parameters\":[\"NO\"],\"ParameterType\":1}]}", cmd.ToJson()); }