예제 #1
0
파일: InTests.cs 프로젝트: cmaneu/Humanizer
        public void InJanuaryOf2009()
        {
            var inJan = In.JanuaryOf(2009);

            Assert.Equal(2009, inJan.Year);
            Assert.Equal(1, inJan.Month);
            Assert.Equal(1, inJan.Day);
            Assert.Equal(0, inJan.Hour);
            Assert.Equal(0, inJan.Minute);
            Assert.Equal(0, inJan.Second);
            Assert.Equal(0, inJan.Millisecond);
        }
예제 #2
0
 public void InJanuaryOf2009()
 {
     Assert.Equal(new DateTime(2009, 1, 1), In.JanuaryOf(2009));
 }