mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
21 lines
511 B
C#
21 lines
511 B
C#
using Management.Web.Pages.Course.CourseCalendar;
|
|
|
|
public class MonthDetailTests
|
|
{
|
|
[Fact]
|
|
public void TestCanGetMonthName()
|
|
{
|
|
var calendarMonth = new CalendarMonth(2022, 2);
|
|
|
|
#pragma warning disable BL0005 // Component parameter should not be set outside of its component.
|
|
var detail = new MonthDetail()
|
|
{
|
|
Month = calendarMonth
|
|
};
|
|
#pragma warning restore BL0005 // Component parameter should not be set outside of its component.
|
|
|
|
|
|
detail.MonthName.Should().Be("February");
|
|
}
|
|
}
|