Skip to content

Commit

Permalink
test and release note for connamara#473
Browse files Browse the repository at this point in the history
  • Loading branch information
gbirchmeier committed Jul 15, 2019
1 parent e15757a commit 4d00986
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ What's New
* (patch) #509 - Consistent sessionID argument name in IApplication (eugbaranov)
* (patch) #296 - make FieldMap.GetField obsolete; favor .GetString instead (staffanu)
* (patch) #478 - eliminate unnecessary string/byte flip-flop (gbirchmeier)
* (patch) #473 - correct ordering of fields in message trailer (Ieshaj/gbirchmeier)

### v1.8.0:
* (patch) #402 - Multithreading fix to please NUnit 2.6.3 and above (arkadiuszwojcik)
Expand Down
14 changes: 14 additions & 0 deletions UnitTests/MessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -930,5 +930,19 @@ public void SetFieldsTest()
Assert.AreEqual(true, message.IsSetField(Tags.AllocAccountType));
Assert.AreEqual(AllocAccountType.HOUSE_TRADER, message.GetInt(Tags.AllocAccountType));
}

[Test]
public void ChecksumIsLastFieldOfTrailer()
{
// issue 473
QuickFix.FIX42.News msg = new QuickFix.FIX42.News(new Headline("foobar"));
msg.LinesOfText = new LinesOfText(0);

msg.Trailer.SetField(new Signature("woot"));
msg.Trailer.SetField(new SignatureLength(4));

string foo = msg.ToString().Replace(Message.SOH, "|");
StringAssert.EndsWith("|10=099|", foo);
}
}
}

0 comments on commit 4d00986

Please sign in to comment.