public void CurrentQuarterShouldReturnExpectedResult() { using ( ShimsContext.Create() ) { ShimDateTime.TodayGet = () => new DateTime( 2013, 6, 1 ); var expected = 2; var target = new GregorianCalendar(); var actual = target.CurrentQuarter(); Assert.Equal( expected, actual ); } }