C# Class TennisKata.Factored1.TennisGame

Afficher le fichier Open project: shadowman/tenniskata-kake-dojo Class Usage Examples

Méthodes publiques

Свойство Type Description
POINTS string[]

Méthodes publiques

Méthode Description
GetScore ( ) : string
SomeoneHasWon ( ) : bool
TennisGame ( string player1Name, string player2Name )
WinningPlayerName ( ) : string
WonPoint ( string playerName ) : void

Private Methods

Méthode Description
IsEndgame ( ) : bool
PointsAreEven ( ) : bool

Method Details

GetScore() public méthode

public GetScore ( ) : string
Résultat string

SomeoneHasWon() public méthode

public SomeoneHasWon ( ) : bool
Résultat bool

TennisGame() public méthode

public TennisGame ( string player1Name, string player2Name )
player1Name string
player2Name string

WinningPlayerName() public méthode

public WinningPlayerName ( ) : string
Résultat string

WonPoint() public méthode

public WonPoint ( string playerName ) : void
playerName string
Résultat void

Property Details

POINTS public_oe static_oe property

public static string[] POINTS
Résultat string[]