diff --git a/src/System.Globalization/tests/DateTimeFormatInfo/DateTimeFormatInfoAbbreviatedMonthGenitiveNames.cs b/src/System.Globalization/tests/DateTimeFormatInfo/DateTimeFormatInfoAbbreviatedMonthGenitiveNames.cs index 4bfb024f00aa..7d466f3722ed 100644 --- a/src/System.Globalization/tests/DateTimeFormatInfo/DateTimeFormatInfoAbbreviatedMonthGenitiveNames.cs +++ b/src/System.Globalization/tests/DateTimeFormatInfo/DateTimeFormatInfoAbbreviatedMonthGenitiveNames.cs @@ -33,5 +33,15 @@ public void AbbreviatedMonths_Set_Invalid() // DateTimeFormatInfo.InvariantInfo is read only Assert.Throws(() => DateTimeFormatInfo.InvariantInfo.AbbreviatedMonthGenitiveNames = new string[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "" }); } + + [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] + public void AbbreviatedMonthNames_Format() + { + var format = new DateTimeFormatInfo(); + format.AbbreviatedMonthGenitiveNames = new string[] { "GenJan", "GenFeb", "GenMar", "GenApr", "GenMay", "GenJun", "GenJul", "GenAug", "GenSep", "GenOct", "GenNov", "GenDec", "Gen" }; + + Assert.Equal("19 GenJun 76", new DateTime(1976, 6, 19).ToString("d MMM yy", format)); + } } }