Esempio n. 1
0
        public void GetMonthRangeInUTCTestMay()
        {
            //Setup

            DateTime testADate                 = new DateTime(2015, 5, 18);
            DateTime expectedUTCMonthStart     = new DateTime(2015, 5, 1).ToUniversalTime();
            DateTime expectedUTCNextMonthStart = new DateTime(2015, 6, 1).ToUniversalTime();
            DateSpan expectedDateSpan          = new DateSpan(expectedUTCMonthStart, expectedUTCNextMonthStart);

            //Act
            DateSpan result = InternshipChallengeNew.GetMonthRangeInUtc(testADate);

            //Perform
            Assert.True(result.Equals(expectedDateSpan));
        }