public void WhenOnlyOneInJournalAndMatches() { var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal(); var testEntry = new FitbitEntry(DateTime.Today, 500, 2.0, 310, 1, 155, new TimeSpan()); testJournal.AddEntry(testEntry); Assert.AreEqual(1, testJournal.CountDaysWithStepsOver(200)); }
public void WhenMultiplesInJournalAndNoneMatch() { var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal(); var testEntry = new FitbitEntry(DateTime.Today, 1000, 2.0, 310, 1, 155, new TimeSpan()); var testEntry2 = new FitbitEntry(DateTime.Today, 2000, 2.0, 310, 1, 155, new TimeSpan()); var testEntry3 = new FitbitEntry(DateTime.Today, 3000, 2.0, 310, 1, 155, new TimeSpan()); testJournal.AddEntry(testEntry); testJournal.AddEntry(testEntry2); testJournal.AddEntry(testEntry3); Assert.AreEqual(0, testJournal.CountDaysWithStepsOver(5000)); }
public void WhenNoEntriesInJournal() { var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal(); Assert.AreEqual(0, testJournal.CountDaysWithStepsOver(1000)); }