public void Test_Program_Header_Line() { string line = "Fastrax Rinex v 1.10 PGM / RUN BY / DATE "; Rinex.IO.Interface.IRinexObservationHeaderParser p = new Rinex.IO.Support.RinexObservationHeaderParser(); IProgramHeader output = p.ParseProgramHeader(line); }
public void Test_Obervation_Header_Line() { string line = " 2.10 O G RINEX VERSION / TYPE"; Rinex.IO.Interface.IRinexObservationHeaderParser p = new Rinex.IO.Support.RinexObservationHeaderParser(); IRinexHeader output = p.ParseHeaderInformation(line); }
public void Test_Types_Parsing_2() { int Count = 0; string line = " 3 C1 L1 P1 # / TYPES OF OBSERV"; Rinex.IO.Interface.IRinexObservationHeaderParser p = new Rinex.IO.Support.RinexObservationHeaderParser(); int[] output = p.ParseSignalTypes(line, out Count); Assert.AreEqual(3, output.Length); Assert.AreEqual(0, output[0]); Assert.AreEqual(4, output[1]); Assert.AreEqual(2, output[2]); Assert.AreEqual(3, Count); }