public void TestDecodeWithFile() { TSSTool tool = TSSTool.GetInstance(); FileStream FitFile = new FileStream("../../../Assets/TestFile-KG.fit", FileMode.Open); Assert.True(tool.DecodeFile(FitFile)); FitFile.Dispose(); }
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(); }
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(); }