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

Public Member Functions

 Outcome_Tests (IOutputService console)
 
bool TestToString ()
 
bool TestEqualityComparer (ushort testCount)
 Tests for equality operations (== , !=, Equals(), List.Contains(), and Dictionary.ContainsKey()). More...
 
bool TestExceptions (bool displayExceptions)
 Tests that exceptions are set up correctly More...
 
bool TestWinAmounts (ushort iterations)
 Tests Outcome.GetWinAmount(float amount). More...
 

Constructor & Destructor Documentation

Roulette.Tests.Outcome_Tests.Outcome_Tests ( IOutputService  console)

Member Function Documentation

bool Roulette.Tests.Outcome_Tests.TestEqualityComparer ( ushort  testCount)

Tests for equality operations (== , !=, Equals(), List.Contains(), and Dictionary.ContainsKey()).

Parameters
testCountSet the random number range and random string lengths.
Returns
True if all tests pass.
bool Roulette.Tests.Outcome_Tests.TestExceptions ( bool  displayExceptions)

Tests that exceptions are set up correctly

Parameters
displayExceptionsLog the actual exception messages.
Returns
True if all tests pass.
bool Roulette.Tests.Outcome_Tests.TestToString ( )
bool Roulette.Tests.Outcome_Tests.TestWinAmounts ( ushort  iterations)

Tests Outcome.GetWinAmount(float amount).

Parameters
iterationsNumber of iterations fo the test to perform.
Returns
True if all tests pass.

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