public void ComponentSmokeTest() { QuickFix.DataDictionary.DataDictionary dd = new QuickFix.DataDictionary.DataDictionary(); dd.Load("../../../spec/fix/FIX44.xml"); QuickFix.DataDictionary.DDMap tcr = dd.Messages["AE"]; Assert.True(tcr.Fields.ContainsKey(55)); Assert.False(tcr.Fields.ContainsKey(5995)); }
public void HeaderGroupTest() { QuickFix.DataDictionary.DataDictionary dd = new QuickFix.DataDictionary.DataDictionary(); dd.Load("../../../spec/fix/FIX44.xml"); QuickFix.DataDictionary.DDMap headerMap = dd.Header; Assert.True(headerMap.IsGroup(627)); QuickFix.DataDictionary.DDGrp grpMap = headerMap.GetGroup(627); Assert.True(dd.Header.GetGroup(627).IsField(628)); Assert.True(grpMap.IsField(628)); }
public void NestedGroupTest() { QuickFix.DataDictionary.DataDictionary dd = new QuickFix.DataDictionary.DataDictionary(); dd.Load("../../../spec/fix/FIX44.xml"); QuickFix.DataDictionary.DDMap msgJ = dd.Messages["J"]; Assert.True(msgJ.IsGroup(73)); Assert.False(msgJ.IsGroup(756)); Assert.True(msgJ.GetGroup(73).IsGroup(756)); }
public void GroupBeginsGroupTest() { QuickFix.DataDictionary.DataDictionary dd = new QuickFix.DataDictionary.DataDictionary(); dd.LoadTestFIXSpec("group_begins_group"); QuickFix.DataDictionary.DDMap msg = dd.Messages["magic"]; Assert.True(msg.IsGroup(6660)); // NoMagics group Assert.True(msg.GetGroup(6660).IsGroup(7770)); // NoMagics/NoRabbits Assert.True(msg.GetGroup(6660).IsField(6661)); // NoMagics/MagicWord Assert.True(msg.GetGroup(6660).GetGroup(7770).IsField(7711)); // NoMagics/NoRabbits/RabbitName Assert.AreEqual(7770, msg.GetGroup(6660).Delim); // NoMagics delim is NoRabbits counter Assert.AreEqual(7711, msg.GetGroup(6660).GetGroup(7770).Delim); // NoRabbits delim is RabbitName }
public void GroupTest() { QuickFix.DataDictionary.DataDictionary dd = new QuickFix.DataDictionary.DataDictionary(); dd.Load("../../../spec/fix/FIX44.xml"); QuickFix.DataDictionary.DDMap tcrr = dd.Messages["AD"]; Assert.True(tcrr.IsGroup(711)); Assert.True(tcrr.IsField(711)); // No Field also a field Assert.True(tcrr.GetGroup(711).IsField(311)); Assert.That(tcrr.Groups[711].Fields[311].Name, Is.EqualTo("UnderlyingSymbol")); Assert.That(tcrr.Groups[711].Delim, Is.EqualTo(311)); QuickFix.DataDictionary.DDMap tcr = dd.Messages["AE"]; Assert.That(tcr.Groups[711].Groups[457].Fields[458].Name, Is.EqualTo("UnderlyingSecurityAltID")); }