public void Puzzle_22A() { var cc = new CrabCombat { P1 = new Queue <int>(PuzzleP1), P2 = new Queue <int>(PuzzleP2) }; cc.Battle(); Assert.Equal(687, cc.RoundsPlayed); Assert.Equal(33098, cc.P1Score); Assert.Equal(0, cc.P2Score); }
public void Example_1() { var cc = new CrabCombat { P1 = new Queue <int>(new [] { 9, 2, 6, 3, 1 }), P2 = new Queue <int>(new [] { 5, 8, 4, 7, 10 }) }; cc.Battle(); Assert.Equal(29, cc.RoundsPlayed); Assert.Equal(0, cc.P1Score); Assert.Equal(306, cc.P2Score); }