public void SetContextShouldWorkWithoutException() { //Arrange var context = new FighterContext(); //Act var exception = Record.Exception(() => context.SetStrategy(new Ryu())); //Assert exception.ShouldBeNull(); }
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"); }
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"); }
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"); }