Пример #1
0
        public void MoveRemovedCupsToNewPositionCorrectly()
        {
            var sut = new CupGame(SAMPLE_DATA);

            sut.RemoveThreeCupsAfterCurrentCup();
            sut.SelectDestinationCup();

            sut.MoveSelectedCupsAfterDestinationCup();
            Assert.Collection(sut.GetCupsInOrder(),
                              c1 => Assert.Equal(3, c1),
                              c2 => Assert.Equal(5, c2),
                              c3 => Assert.Equal(2, c3),
                              c4 => Assert.Equal(4, c4),
                              c5 => Assert.Equal(1, c5));
        }