public void AdvancedMetricsIFTest() { var Interval = new IntervalView(); double ftp = 10; double power = 232; double count = Interval.AdvancedMetricsIF(ftp, power); // Gets intensity factor based on normaizsed power and user input ftp Assert.IsTrue(count == 23.2, "Correct result"); // Correct result }
public void AdvancedMetricsTSSTest() { var Interval = new IntervalView(); double ftp = 300; double power = 232; int time = 1 * 3979; double IF = Interval.AdvancedMetricsIF(ftp, power); // Gets intensity factor based on normaizsed power and user input ftp double TSS = Interval.AdvancedMetricsTSS(ftp, power, IF, time); // Gets intensity factor based on normaizsed power and user input ftp Assert.IsTrue(TSS == 66, "Correct result"); // Correct result }