# @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.435=A34=149=TW52=<TIME>56=ISLD98=0108=2
E8=FIX.4.49=6035=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=210=0

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

# new order message with all body tags first
I8=FIX.4.435=D11=id21=340=154=155=MSFT60=<TIME>34=249=TW52=<TIME>56=ISLD
# expect a reject
E8=FIX.4.49=11335=334=249=ISLD52=00000000-00:00:00.00056=TW45=258=Tag specified out of required order371=34372=D373=1410=0

# new order message with one body tag first
I8=FIX.4.435=D55=MSFT34=349=TW52=<TIME>56=ISLD11=id21=340=154=160=<TIME>
# expect a reject
E8=FIX.4.49=11335=334=349=ISLD52=00000000-00:00:00.00056=TW45=358=Tag specified out of required order371=34372=D373=1410=0

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

# logout message and response
I8=FIX.4.435=534=449=TW52=<TIME>56=ISLD
E8=FIX.4.49=4935=534=449=ISLD52=00000000-00:00:00.00056=TW10=0

eDISCONNECT