public void CurrentEndOfWeekWithCustomStartShouldReturnExpectedResult() { using ( ShimsContext.Create() ) { ShimDateTime.TodayGet = () => new DateTime( 2013, 6, 2 ); var expected = new DateTime( 2013, 6, 7 ); var target = new GregorianCalendar(); var actual = target.CurrentEndOfWeek( DayOfWeek.Saturday ); Assert.Equal( expected.Date, actual.Date ); } }