System.Tests.DateTimeOffsetTests.VerifyDateTimeOffset C# (CSharp) 메소드

VerifyDateTimeOffset() 개인적인 정적인 메소드

private static VerifyDateTimeOffset ( DateTimeOffset dateTimeOffset, int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset ) : void
dateTimeOffset DateTimeOffset
year int
month int
day int
hour int
minute int
second int
millisecond int
offset TimeSpan
리턴 void
        private static void VerifyDateTimeOffset(DateTimeOffset dateTimeOffset, int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan? offset)
        {
            Assert.Equal(year, dateTimeOffset.Year);
            Assert.Equal(month, dateTimeOffset.Month);
            Assert.Equal(day, dateTimeOffset.Day);
            Assert.Equal(hour, dateTimeOffset.Hour);
            Assert.Equal(minute, dateTimeOffset.Minute);
            Assert.Equal(second, dateTimeOffset.Second);
            Assert.Equal(millisecond, dateTimeOffset.Millisecond);

            if (offset.HasValue)
            {
                Assert.Equal(offset.Value, dateTimeOffset.Offset);
            }
        }
DateTimeOffsetTests