Example #1
0
        public void shouldStayInCellOnButtonPressAnyOther()
        {
            InCell inCell = new InCell();

            var state = inCell.handleInput(KeyCode.Z);

            Assert.IsInstanceOf <InCell> (state);
        }
Example #2
0
        public void shouldTransitionToBleedingNeckOnButtonPressB()
        {
            InCell inCell = new InCell();

            var state = inCell.handleInput(KeyCode.B);

            Assert.IsInstanceOf <BleedingNeck> (state);
        }
Example #3
0
        public void shouldTransitionToHangingDeadOnButtonPressC()
        {
            InCell inCell = new InCell();

            var state = inCell.handleInput(KeyCode.C);

            Assert.IsInstanceOf <HangingDead> (state);
        }
Example #4
0
        public void shouldTransitionToSansMethOnButtonPressA()
        {
            InCell inCell = new InCell();

            var state = inCell.handleInput(KeyCode.A);

            Assert.IsInstanceOf <SansMeth> (state);
        }