System.Net.Mime.Tests.SmtpDateTimeTest.SmtpDateTime_WithDateThatHasKindSetToLocal_ShouldSetTimeZoneCorrectly C# (CSharp) Method

SmtpDateTime_WithDateThatHasKindSetToLocal_ShouldSetTimeZoneCorrectly() private method

        public void SmtpDateTime_WithDateThatHasKindSetToLocal_ShouldSetTimeZoneCorrectly()
        {
            var date = new DateTime(2008, 1, 1, 12, 00, 00, DateTimeKind.Local);
            var smtpDt = new SmtpDateTime(date);
            Assert.Equal(date, smtpDt.Date);
        }