public void PassByDoors_OneTime_AllDoorsBecomeWithOpenedStatus() { // Arrange var doors = new DoorsCollection(); // Act doors.PassByDoors(times: 1); // Assert Assert.IsTrue(doors.All(d => d.Status == DoorStatus.Opened)); }
public void _InitialState_AllDoorsWithStatusClosed() { var doors = new DoorsCollection(); Assert.IsTrue(doors.All(d => d.Status == DoorStatus.Closed)); }