Esempio n. 1
0
        public void TestDecodeWithFile()
        {
            TSSTool    tool    = TSSTool.GetInstance();
            FileStream FitFile = new FileStream("../../../Assets/TestFile-KG.fit", FileMode.Open);

            Assert.True(tool.DecodeFile(FitFile));
            FitFile.Dispose();
        }
Esempio n. 2
0
        public void TestDecodeWithFileSavesElapsedTime()
        {
            TSSTool    tool    = TSSTool.GetInstance();
            FileStream FitFile = new FileStream("../../../Assets/TestFile-KG.fit", FileMode.Open);

            Assert.True(tool.DecodeFile(FitFile));
            Assert.InRange <int>(ElapsedTimeLogger.Instance.ElapsedTime, 1, int.MaxValue);
            FitFile.Dispose();
        }
Esempio n. 3
0
        public void TestDecodeWithFileSavesHeartRate()
        {
            TSSTool    tool    = TSSTool.GetInstance();
            FileStream FitFile = new FileStream("../../../Assets/TestFile-KG.fit", FileMode.Open);

            Assert.True(tool.DecodeFile(FitFile));
            Assert.NotEmpty(HeartRateLogger.Instance.HeartRates);
            FitFile.Dispose();
        }