ItMayBeAHack OOD Exercises
An exercise in OOD as guided by ItMayBeAHack.com.
Public Member Functions | List of all members
Roulette.Tests.Wheel_Tests Class Reference

Public Member Functions

 Wheel_Tests (IOutputService console)
 
int[] GetRngValues (int count, int seed, int maxValue)
 Gets the random values based on the input seed. More...
 
bool TestGetRandomBin ()
 Tests Wheel.GetRandomBin() and GetBinAtIndex() More...
 
bool TestOutcomesDictionary ()
 

Constructor & Destructor Documentation

Roulette.Tests.Wheel_Tests.Wheel_Tests ( IOutputService  console)

Member Function Documentation

int [] Roulette.Tests.Wheel_Tests.GetRngValues ( int  count,
int  seed,
int  maxValue 
)

Gets the random values based on the input seed.

Parameters
countNumber of randoms ints to get.
seedSeed for the random number generator.
maxValueThe maximum random nuber.
Returns
Array of random integers.
bool Roulette.Tests.Wheel_Tests.TestGetRandomBin ( )

Tests Wheel.GetRandomBin() and GetBinAtIndex()

Returns
false on failure, true on pass
bool Roulette.Tests.Wheel_Tests.TestOutcomesDictionary ( )

The documentation for this class was generated from the following file: