コード例 #1
0
        public void ShouldReturnClosedDoorOnStateChange()
        {
            //assign
            IDoor openDoor = new OpenDoor();
            //act
            IDoor closedDoor = openDoor.ChangeState();

            //assert
            closedDoor.IsOpen().Should().BeFalse();
        }
コード例 #2
0
        public void ShouldShowDoorAs_Open()
        {
            //assign
            IDoor door = new OpenDoor();
            //act
            bool isOpen = door.IsOpen();

            //assert
            isOpen.Should().BeTrue();
        }