1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Collections.Generic; 6 using Xunit; 7 8 namespace System.Globalization.Tests 9 { 10 public class KoreanCalendarGetMonth 11 { GetMonth_TestData()12 public static IEnumerable<object[]> GetMonth_TestData() 13 { 14 yield return new object[] { DateTime.MinValue }; 15 yield return new object[] { DateTime.MaxValue }; 16 yield return new object[] { new DateTime(2004, 2, 29) }; 17 } 18 19 [Theory] 20 [MemberData(nameof(GetMonth_TestData))] GetMonth(DateTime time)21 public void GetMonth(DateTime time) 22 { 23 Assert.Equal(time.Month, new KoreanCalendar().GetMonth(time)); 24 } 25 } 26 } 27