Exemplo n.º 1
0
        public void CompletedGoalsCount_IsZero_AfterUpdatingGoal()
        {
            Day       day  = new Day(sampleDate);
            DailyGoal goal = new DailyGoal("", true);

            day.Goals.Add(goal);
            goal.SetCompleted(false);

            Assert.That(day.CompletedGoalsCount, Is.Zero);
        }
Exemplo n.º 2
0
        public void CompletedGoalsCount_IsCorrect_AfterUpdatingGoal()
        {
            Day       day  = new Day(sampleDate);
            DailyGoal goal = new DailyGoal("");

            day.Goals.Add(goal);
            goal.SetCompleted(true);

            Assert.That(day.CompletedGoalsCount, Is.EqualTo(1));
        }