private void TestStringParserTemplate(string lunarDate, int year, int month, int day) { var UtcDateTime = new DateTime(year, month, day); var remoteName = dp.ConvertRemoteSolarLunarName(lunarDate); 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(); }