Example #1
0
        public void TestParseOS2010SweFile()
        {
            OSParser pars = new OSParser();

            List<Result> results = new List<Result>();

            pars.OnResult += new ResultDelegate(delegate(Result newRes)
            {
                results.Add(newRes);
            });

            pars.AnalyzeFile(TestHelpers.GetPathToTestFile("os2010_splits_sve.csv"));
            VerifyOSFile1(results);
        }
Example #2
0
        public void TestOS2010FinishPunch()
        {
            var pars = new OSParser();

            var results = new List<Result>();

            pars.OnResult += results.Add;

            pars.AnalyzeFile(TestHelpers.GetPathToTestFile("20150125_100921_emma_preReadout.csv"));

            Assert.AreEqual(15, results.Count);
            var r = results.First(x => x.RunnerName == "Sandro Truttmann");
            Assert.IsInstanceOfType(r, typeof (RelayResult));
            Assert.AreEqual(0, r.StartTime);
            Assert.AreEqual(9, (r as RelayResult).OverallStatus);
            Assert.AreEqual(230300, (r as RelayResult).OverallTime);
        }