Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarekm Mahmoud Sayed <tarekms@microsoft.com>2017-01-30 22:19:11 +0300
committerTarekm Mahmoud Sayed <tarekms@microsoft.com>2017-01-30 22:19:11 +0300
commit2b9e99e7439804d796a1fafd808e3b4a74fb25d8 (patch)
tree9c5f4fa976c5cee9d0ce9d2a6ec3e2410cc6ff71 /src/System.Globalization.Calendars
parent232f0d4892610d60e632a6560135f2cf6da77f26 (diff)
Fix Lunisolar calendar leap month tests
Lunisolar calendars tests assumed these calendars doesn't have leap months which is wrong. the change is just fixng the tests
Diffstat (limited to 'src/System.Globalization.Calendars')
-rw-r--r--src/System.Globalization.Calendars/tests/Misc/Calendars.netstandard.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/System.Globalization.Calendars/tests/Misc/Calendars.netstandard.cs b/src/System.Globalization.Calendars/tests/Misc/Calendars.netstandard.cs
index de7ca53cfe..daf7bf8c3e 100644
--- a/src/System.Globalization.Calendars/tests/Misc/Calendars.netstandard.cs
+++ b/src/System.Globalization.Calendars/tests/Misc/Calendars.netstandard.cs
@@ -14,18 +14,18 @@ namespace System.Globalization.Tests
public static IEnumerable<object[]> Calendars_TestData()
{
// Calendar yearHasLeapMonth CalendarAlgorithmType
- yield return new object[] { new ChineseLunisolarCalendar() , 0 , CalendarAlgorithmType.LunisolarCalendar };
+ yield return new object[] { new ChineseLunisolarCalendar() , 2017 , CalendarAlgorithmType.LunisolarCalendar };
yield return new object[] { new GregorianCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
yield return new object[] { new HebrewCalendar() , 5345 , CalendarAlgorithmType.LunisolarCalendar };
yield return new object[] { new HijriCalendar() , 0 , CalendarAlgorithmType.LunarCalendar };
yield return new object[] { new JapaneseCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
- yield return new object[] { new JapaneseLunisolarCalendar() , 0 , CalendarAlgorithmType.LunisolarCalendar };
+ yield return new object[] { new JapaneseLunisolarCalendar() , 29 , CalendarAlgorithmType.LunisolarCalendar };
yield return new object[] { new JulianCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
yield return new object[] { new KoreanCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
- yield return new object[] { new KoreanLunisolarCalendar() , 0 , CalendarAlgorithmType.LunisolarCalendar };
+ yield return new object[] { new KoreanLunisolarCalendar() , 2017 , CalendarAlgorithmType.LunisolarCalendar };
yield return new object[] { new PersianCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
yield return new object[] { new TaiwanCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
- yield return new object[] { new TaiwanLunisolarCalendar() , 0 , CalendarAlgorithmType.LunisolarCalendar };
+ yield return new object[] { new TaiwanLunisolarCalendar() , 106 , CalendarAlgorithmType.LunisolarCalendar };
yield return new object[] { new ThaiBuddhistCalendar() , 0 , CalendarAlgorithmType.SolarCalendar };
yield return new object[] { new UmAlQuraCalendar() , 0 , CalendarAlgorithmType.LunarCalendar };
}
@@ -38,7 +38,6 @@ namespace System.Globalization.Tests
Assert.Equal(calendar.GetType(), cloned.GetType());
}
- [ActiveIssue(15581)]
[Theory]
[MemberData(nameof(Calendars_TestData))]
public static void GetLeapMonthTest(Calendar calendar, int yearHasLeapMonth, CalendarAlgorithmType algorithmType)