public void GetYearFromDate_期末日_1月20日締() { var provider = new NendoProvider(1, 21); Assert.AreEqual(2009, provider.GetYearFromDate(new DateTime(2010, 1, 20))); }
public void GetYearFromDate_期末日基準計算_期末日() { var provider = new NendoProvider(12, 15, NendoProvider.ReferenceAt.LastDate); Assert.AreEqual(2020, provider.GetYearFromDate(new DateTime(2020, 12, 14))); }
public void GetYearFromDate_期末日_3月末締() { var provider = new NendoProvider(4, 1); Assert.AreEqual(2019, provider.GetYearFromDate(new DateTime(2020, 3, 31))); }