Exemplo n.º 1
0
        public void CurrentStartOfWeekWithCustomStartShouldReturnExpectedResult()
        {
            using ( ShimsContext.Create() )
            {
                ShimDateTime.TodayGet = () => new DateTime( 2013, 6, 8 );

                var expected = new DateTime( 2013, 6, 3 );
                var target = new GregorianCalendar();
                var actual = target.CurrentStartOfWeek( DayOfWeek.Monday );

                Assert.Equal( expected, actual );
            }
        }