示例#1
0
文件: CSV.cs 项目: mbmccormick/Ximura
        public void CSVTest1()
        {
            CSVMessage message = new CSVMessage(true);

            using (Stream data = GetType().ResourceAsStream("Ximura.UnitTest.Messaging.CSV.Examples.stop_times.txt"))
            {
                message.Load(data);
            }
        }
示例#2
0
文件: CSV.cs 项目: mbmccormick/Ximura
        public void CSVTestRFC4180()
        {
            CSVMessage message = new CSVMessage(true);

            try
            {
                using (Stream data = GetType().ResourceAsStream("Ximura.UnitTest.Messaging.CSV.Examples.TestRFC4180.csv"))
                {
                    message.Load(data);
                }
            }
            catch (Exception ex) 
            {
                throw ex;
            }
        }