示例#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();
        }
示例#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();
        }
示例#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();
        }