public void SameDayTest() { DateTime start = new DateTime(2013, 12, 15, 17, 34, 54, 900); DateTime end = new DateTime(2013, 12, 15, 17, 35, 0, 0); TimeSpan duration = new TimeSpan(3, 4, 5); TimeFormatter formatter = new TimeFormatter(); string interval = formatter.GetInterval( start, end, IntervalEdge.Open, IntervalEdge.Open, duration); string expectedInterval = string.Concat( "(", formatter.GetDateTime(start), formatter.StartEndSeparator, formatter.GetLongTime(end), ")", formatter.DurationSeparator, formatter.GetDuration(duration)); Assert.Equal(interval, expectedInterval); } // SameDayTest