public void CnDate01() { CnDate target = new CnDate(new DateTime(2011,11,22)); Assert.AreEqual("������", target.Constellation); Assert.AreEqual("ʮ��", target.Month); Assert.AreEqual("إ��", target.Day); Assert.AreEqual("��î��", target.Year); Assert.AreEqual(false, target.IsSolarTerm); Assert.AreEqual(null, target.SolarTerm); Assert.AreEqual("��î�� ʮ��إ��, ���ڶ�", target.ToString()); target = new CnDate(new DateTime(2011, 11, 23)); Assert.AreEqual("������", target.Constellation); Assert.AreEqual("ʮ��", target.Month); Assert.AreEqual("إ��", target.Day); Assert.AreEqual("��î��", target.Year); Assert.AreEqual(true, target.IsSolarTerm); Assert.AreEqual("Сѩ", target.SolarTerm); Assert.AreEqual("��î�� Сѩ, ������", target.ToString("Y S, W")); }
public CnDate Constructor(DateTime date) { CnDate target = new CnDate(date); return target; // TODO: add assertions to method CnDateTest.Constructor(DateTime) }