Taketrung / betting-ai

Automatically exported from code.google.com/p/betting-ai
1 stars 1 forks source link

Refactor Betex tests to use case Bet class for assertions #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of:
assertEquals(10,matchResult(0).betId)
assertEquals(122,matchResult(0).userId)
assertEquals(10,matchResult(0).betSize,0)
assertEquals(2,matchResult(0).betPrice,0)
assertEquals(BACK,matchResult(0).betType)
assertEquals(M,matchResult(0).betStatus)
assertEquals(1,matchResult(0).marketId)
assertEquals(11,matchResult(0).runnerId)

use:
assertEquals(Bet(....), currentBet)

Original issue reported on code.google.com by daniel.k...@gmail.com on 4 Mar 2011 at 5:45

GoogleCodeExporter commented 9 years ago
Duplicate of http://code.google.com/p/betting-exchange/issues/detail?id=2

Original comment by daniel.k...@gmail.com on 30 May 2011 at 10:45