コード例 #1
0
        public void Should_ConvertFromDateTime()
        {
            var now = DateTime.Now;

            var date = DayTime.FromDateTime(now);

            date.Year.Should().Be(now.Year);
            date.Month.Should().Be(now.Month);
            date.Day.Should().Be(now.Day);
        }