Пример #1
0
 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());
 }
Пример #2
0
 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());
 }
Пример #3
0
        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());
        }
Пример #4
0
        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);
        }
Пример #5
0
    IEnumerator ChangeCurrentUnit()
    {
        index = (index + 1) % Units.Count;
        Turn.Change(Units[index]);
        yield return(null);

        owner.ChangeState <CommandSelectionState>();
    }
Пример #6
0
 public void Change()
 {
     turn.Change();
 }