public void SummarizeSpentForActivityInTimeLog()
 {
     var activities = new List<IActivity>(
         new IActivity[] {
             new Activity("activity1", DateTime.Now, TimeSpan.Parse("0:10")),
             new Activity("activity1", DateTime.Now, TimeSpan.Parse("0:15"))
         });
     var summarizer = new ActivityTimeSummarizer("activity1", null, null);
     TimeSpan spent = summarizer.SummarizeSpent(activities);
     Assert.AreEqual(TimeSpan.Parse("0:25"), spent);
 }
Exemplo n.º 2
0
        public void SummarizeSpentForActivityInTimeLog()
        {
            var activities = new List <IActivity>(
                new IActivity[] {
                new Activity("activity1", DateTime.Now, TimeSpan.Parse("0:10")),
                new Activity("activity1", DateTime.Now, TimeSpan.Parse("0:15"))
            });
            var      summarizer = new ActivityTimeSummarizer("activity1", null, null);
            TimeSpan spent      = summarizer.SummarizeSpent(activities);

            Assert.AreEqual(TimeSpan.Parse("0:25"), spent);
        }