public void WhenReplaceActivityCaloriesOfFirst() { var testJournal = new FitbitAnalysis_Phillip_Morris.Model.FitbitJournal(); var testDate = new DateTime(2017, 11, 2); var testEntry1 = new FitbitEntry(testDate, 500, 2.0, 310, 1, 155, new TimeSpan()); var testEntry2 = new FitbitEntry(testDate, 500, 75.0, 310, 1, 72, new TimeSpan()); testJournal.AddEntry(testEntry1); testJournal.ReplaceMatchingDateEntries(testEntry2); Assert.AreEqual(72, testJournal.GetEntryByDate(testDate).ActivityCalories); }