コード例 #1
0
        public void RyuShouldDoCombo_WhenRLetterIsPressed(char comboKey)
        {
            //Arrange
            var fighterContext = new FighterContext();

            fighterContext.SetStrategy(new Ryu());

            //Act
            var sut = fighterContext.DoCombo(comboKey);

            //Assert
            sut.ShouldContain("Shoryuken");
        }
コード例 #2
0
        public void KenShouldDoCombo_WhenKLetterIsPressed(char comboKey)
        {
            //Arrange
            var fighterContext = new FighterContext();

            fighterContext.SetStrategy(new Ken());

            //Act
            var sut = fighterContext.DoCombo(comboKey);

            //Assert
            sut.ShouldContain("Hadoken");
        }
コード例 #3
0
        public void DhalsimShouldDoCombo_WhenDLetterIsPressed(char comboKey)
        {
            //Arrange
            var fighterContext = new FighterContext();

            fighterContext.SetStrategy(new Dhalsim());

            //Act
            var sut = fighterContext.DoCombo(comboKey);

            //Assert
            sut.ShouldContain("Yoga Flame");
        }