# @testcase 14.g
# @condition Recieve message in which the following are not true: header+body+trailer is the order
# @expected Send Reject (session-level) message referencing incorrect message structure. Increment inbound MsgSeqNum. Generate an error condition in test output.

iCONNECT
# logon message and response
I8=FIX.4.035=A34=149=TW52=<TIME>56=ISLD98=0108=2
E8=FIX.4.09=5635=A34=149=ISLD52=00000000-00:00:0056=TW98=0108=210=0

#------------------------
# begin message exchange
#------------------------

# new order message with all body tags first
I8=FIX.4.035=D11=id21=338=10040=154=155=MSFT34=249=TW52=<TIME>56=ISLD
# expect a reject
E8=FIX.4.09=9435=334=249=ISLD52=00000000-00:00:0056=TW45=258=Tag specified out of required order (34)10=0

# new order message with one body tag first
I8=FIX.4.035=D55=MSFT34=349=TW52=<TIME>56=ISLD11=id21=338=10040=154=1
# expect a reject
E8=FIX.4.09=9435=334=349=ISLD52=00000000-00:00:0056=TW45=358=Tag specified out of required order (34)10=0

#------------------------
# end message exchange
#------------------------

# logout message and response
I8=FIX.4.035=534=449=TW52=<TIME>56=ISLD
E8=FIX.4.09=4535=534=449=ISLD52=00000000-00:00:0056=TW10=0

eDISCONNECT