C# Class TennisKata.Defactored2.TennisGame

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

Méthodes publiques

Свойство Type Description
P1point int
P1res string
P2point int
P2res string

Méthodes publiques

Méthode Description
GetScore ( ) : string
P1Score ( ) : void
P2Score ( ) : void
SetP1Score ( int number ) : void
SetP2Score ( int number ) : void
TennisGame ( string player1Name, string player2Name )
WonPoint ( string player ) : void

Method Details

GetScore() public méthode

public GetScore ( ) : string
Résultat string

P1Score() public méthode

public P1Score ( ) : void
Résultat void

P2Score() public méthode

public P2Score ( ) : void
Résultat void

SetP1Score() public méthode

public SetP1Score ( int number ) : void
number int
Résultat void

SetP2Score() public méthode

public SetP2Score ( int number ) : void
number int
Résultat void

TennisGame() public méthode

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

WonPoint() public méthode

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

Property Details

P1point public_oe property

public int P1point
Résultat int

P1res public_oe property

public string P1res
Résultat string

P2point public_oe property

public int P2point
Résultat int

P2res public_oe property

public string P2res
Résultat string