コード例 #1
0
        public void YearsTest(double months, double expectedYears, int expectedYear)
        {
            var dateTime = HenHenTime.FromMonths(months);

            Assert.AreEqual(expectedYears, dateTime.Years);
            Assert.AreEqual(expectedYear, dateTime.Year);
        }
コード例 #2
0
        public void SeasonTest(double months, int expectedSeason)
        {
            var dateTime = HenHenTime.FromMonths(months);

            Assert.AreEqual(expectedSeason, dateTime.Season);
        }