public void ThenDeclareTheResultAsTied(int runs) { _result = new Winner(); Cricket value = new Cricket(); value = _result.DeclareWinner(_game1, _game); value.PlayerScore.Should().Be(runs); }
public void Declaring_A_PlayerAWinner() { var Player1 = new Cricket(); var Player2 = new Cricket(); int score = 6; Player1.Score(4); Player2.Score(score); Winner check = new Winner(); Cricket Value = new Cricket(); Value = check.DeclareWinner(Player1, Player2); Assert.AreEqual(Value.PlayerScore, score); }
public void Declaring_The_Winner_When_GameIsTied() { var Player1 = new Cricket(); var Player2 = new Cricket(); int score = 3; Player1.Score(score); Player2.Score(score); Winner check = new Winner(); Cricket Value = new Cricket(); Value = check.DeclareWinner(Player1, Player2); Assert.AreEqual(Value.PlayerScore, score); }