public void TestChange() { _turn.Change(); Assert.Equal(Color.OS, _turn.Take()); _turn.Change(); Assert.Equal(Color.XS, _turn.Take()); _turn.Change(); Assert.Equal(Color.OS, _turn.Take()); }
public void TestChange() { OUTTurn.Change(); Assert.Equal(Color.OS, OUTTurn.Take()); OUTTurn.Change(); Assert.Equal(Color.XS, OUTTurn.Take()); OUTTurn.Change(); Assert.Equal(Color.OS, OUTTurn.Take()); //OUTTurn.Change(); //Assert.Equal(Color.XS, OUTTurn.Take()); }
public void TestChange() { var turn = new Turn(); turn.Change(); Assert.Equal(Color.OS, turn.Take()); turn.Change(); Assert.Equal(Color.XS, turn.Take()); turn.Change(); Assert.Equal(Color.OS, turn.Take()); }
public void TestTwoChange() { //arrage Turn turn = new Turn(); //act turn.Change(); turn.Change(); var resultColor = turn.Take(); //assert Color colorExpected = Color.XS; Assert.Equal(colorExpected, resultColor); }
IEnumerator ChangeCurrentUnit() { index = (index + 1) % Units.Count; Turn.Change(Units[index]); yield return(null); owner.ChangeState <CommandSelectionState>(); }
public void Change() { turn.Change(); }