示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        public void _InitialState_AllDoorsWithStatusClosed()
        {
            var doors = new DoorsCollection();

            Assert.IsTrue(doors.All(d => d.Status == DoorStatus.Closed));
        }
示例#4
0
        public void _InitialState_AllDoorsWithStatusClosed()
        {
            var doors = new DoorsCollection();

            Assert.IsTrue(doors.All(d => d.Status == DoorStatus.Closed));
        }