Ejemplo n.º 1
0
        public void ShefA()
        {
            var      s  = new HydrometDailySeries("LUC", "QU");
            DateTime t1 = new DateTime(2012, 10, 27);
            DateTime t2 = new DateTime(2012, 10, 27);

            s.Read(t1, t2);

            var fn = FileUtility.GetTempFileName(".csv");

            File.AppendAllText(fn, "cbtt,pcode,shef_locid,shef_tag,time_zone,scale\n"
                               + "LUC,QU,LUCI1,QADRZ,M,0.001");

            var txt = HydrometDailySeries.CreateSHEFA(fn, t1, t2);

            Assert.AreEqual(".A LUCI1 20121027 M DH2400/QADRZ 0.802", txt[0]);
        }