testing view models

This commit is contained in:
2023-01-18 20:31:50 -07:00
parent 530613fca3
commit 4a321ffa4a
7 changed files with 118 additions and 28 deletions

View File

@@ -0,0 +1,14 @@
using Management.Web.Shared.Semester;
public class MonthDetailTests
{
[Test]
public void TestCanGetMonthName()
{
var detail = new MonthDetail();
var calendarMonth = new CalendarMonth(2022, 2);
detail.Month = calendarMonth;
detail.MonthName.Should().Be("February");
}
}