mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
testing view models
This commit is contained in:
14
Management.Test/ViewModels/MonthDetailTests.cs
Normal file
14
Management.Test/ViewModels/MonthDetailTests.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user