Record slice 2 recheck after notices and portraits.

This commit is contained in:
Leonid Pershin
2026-08-21 03:08:40 +03:00
parent c3d17cafc6
commit 2a199fda8f
4 changed files with 100 additions and 1 deletions
@@ -127,6 +127,13 @@ public class RosterGeneratorTests
Assert.DoesNotContain(demand.Staff, opening => opening.Position == "Teacher");
Assert.DoesNotContain(demand.Staff, opening => opening.RoomId == "computer-lab");
Assert.Contains(demand.Staff, opening => opening.RoomId == "library" && opening.Position == "Librarian");
// Phase 7: homeroom captions are room numbers, not class names the generator would
// otherwise try to parse. The map file itself is not this test's to rewrite.
var homerooms = map.Rooms.Where(room => room.Def == "Classroom").ToArray();
Assert.Equal(11, homerooms.Length);
Assert.All(homerooms, room => Assert.Matches(@"^\d{3}$", room.Label));
Assert.Contains(homerooms, room => room.Label == "204");
}
[Fact]