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

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

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

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

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

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

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

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

            Assert.IsInstanceOf <SansMeth> (state);
        }