public void Setup() { _numberOfDlvs = 0; _bytes = new List <byte>(); _ptn = new PTN { A = 94.1234, ASpecified = true, B = 49.4321, BSpecified = true, C = 5, CSpecified = true, D = 1, DSpecified = true, E = 33, ESpecified = true, F = 44, FSpecified = true, G = 13, GSpecified = true, H = 123123213, HSpecified = true, I = 13213, ISpecified = true }; _tim = new TIM { A = DateTime.Today, ASpecified = true, Items = new List <IWriter> { _ptn, new DLV { A = "0075", B = 32, C = "DEC-1", D = null, E = null, F = null } }.ToArray() }; _binaryReader = new BinaryReader(); }
private static void AreEqual(OperationData operationData, List <TimeScope> timeScopes, TLG tlg, string cardPath) { var fileName = tlg.A + ".xml"; var tlgXmlHeaderFilePath = Path.Combine(cardPath, "TASKDATA", fileName); Assert.IsTrue(File.Exists(tlgXmlHeaderFilePath)); var tims = new XmlReader().ReadTlgXmlData(cardPath, fileName); TimAssert.AreEqual(timeScopes, tims); var sections = operationData.GetAllSections(); var meters = sections.SelectMany(x => x.GetWorkingDatas()).ToList(); var adaptSpatialRecords = operationData.GetSpatialRecords(); var binaryReader = new BinaryReader(); var isoSpatialRecords = binaryReader.Read(cardPath, tlg.A + ".bin", tims.First()); IsoSpatialRecordAssert.AreEqual(adaptSpatialRecords, meters, isoSpatialRecords); }
public void Setup() { _numberOfDlvs = 0; _bytes = new List<byte>(); _ptn = new PTN { A = 94.1234, ASpecified = true, B = 49.4321, BSpecified = true, C = 5, CSpecified = true, D = 1, DSpecified = true, E = 33, ESpecified = true, F = 44, FSpecified = true, G = 13, GSpecified = true, H = 123123213, HSpecified = true, I = 13213, ISpecified = true }; _tim = new TIM { A = DateTime.Today, ASpecified = true, Items = new List<IWriter> { _ptn, new DLV { A = "0075", B = 32, C = "DEC-1", D = null, E = null, F = null } }.ToArray() }; _binaryReader = new BinaryReader(); }