예제 #1
0
        private void TestTemplate(int year, int month, int day, int lunarMonth, int lunarDay)
        {
            var UtcDateTime = new DateTime(year, month, day);
            var remoteName  = dp.ConvertSolarLunarName(year, lunarMonth, lunarDay);

            var result = remoteName == UtcDateTime;

            Assert.True(result, "Should return expected data.");
        }
 protected override void ProcessRecord()
 {
     if (ParameterSetName == "Object")
     {
         gregorianCalendarDate =
             sdp.ConvertSolarLunarName(Year, Month, Day);
     }
     else
     {
         gregorianCalendarDate =
             sdp.ConvertRemoteSolarLunarName(SolarLunarDate);
     }
     this.WriteObject(gregorianCalendarDate);
     base.EndProcessing();
 }