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.CountDaysWithStepsBetween(0, 600)); }
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, 5000, 2.0, 310, 1, 155, new TimeSpan()); var testEntry3 = new FitbitEntry(DateTime.Today, 1000, 2.0, 310, 1, 155, new TimeSpan()); testJournal.AddEntry(testEntry); testJournal.AddEntry(testEntry2); testJournal.AddEntry(testEntry3); Assert.AreEqual(0, testJournal.CountDaysWithStepsBetween(0, 600)); }
public void WhenNoEntriesInJournal() { var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal(); Assert.AreEqual(0, testJournal.CountDaysWithStepsBetween(0, 100)); }