public void GivenTwoAddTagAddRaw_Build_CreatesMessageWithTag() { var uut = new MessageBuilder(); var bytes = uut.AddRaw("22=test|23=test2|").Build(); Assert.True(ConverterTestHelper.GetEncodedMessage("8=FIX.4.4|9=17|22=test|23=test2|10=247|").SequenceEqual(bytes)); }
public void GivenInvalidTwoAddTagAddRaw_Build_CreatesMessageWithTag() { var uut = new MessageBuilder(); string raw = "35=8|49=PHLX|56=PERS|52=20071123-05:30:00.000|11=ATOMNOCCC9990900|20=3|150=E|39=E|55=MSFT|167=CS|54=1|38=15|40=2|44=15|58=PHLX EQUITY TESTING|59=0|47=C|32=0|31=0|151=15|14=0|6=0|35=8|49=PHLX|56=PERS|52=20071123-05:30:00.000|11=ATOMNOCCC9990900|20=3|150=E|39=E|55=MSFT|167=CS|54=1|38=15|40=2|44=15|58=PHLX EQUITY TESTING|59=0|47=C|32=0|31=0|151=15|14=0|6=0|"; var bytes = uut.AddRaw(raw).Build(); Assert.True(ConverterTestHelper.GetEncodedMessage($"8=FIX.4.4|9=356|{raw}10=202|").SequenceEqual(bytes)); }