IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.TestUtilities.UniqueValues Class Reference

UniqueValues is used to check a set of values to ensure that all values are unique or close enough to it. We specify how close as a ratio. More...

Static Public Member Functions

static void Check< T > (ActualValueDelegate< T > del, int targetCount, int maxTries)
 Call a delegate until a certain number of unique values are returned, up to a maximum number of tries. Assert that the target was reached. More...
 
static int CountUniqueValuesTest (params int[] values)
 

Static Private Member Functions

static int CountUniqueValues (IEnumerable actual)
 Count the number of actually unique values in an IEnumerable More...
 
static int CountUniqueValues< T > (ActualValueDelegate< T > del, int count)
 

Detailed Description

UniqueValues is used to check a set of values to ensure that all values are unique or close enough to it. We specify how close as a ratio.

Member Function Documentation

static void NUnit.TestUtilities.UniqueValues.Check< T > ( ActualValueDelegate< T >  del,
int  targetCount,
int  maxTries 
)
inlinestatic

Call a delegate until a certain number of unique values are returned, up to a maximum number of tries. Assert that the target was reached.

References NUnit.Framework.Assert.Fail().

static int NUnit.TestUtilities.UniqueValues.CountUniqueValues ( IEnumerable  actual)
inlinestaticprivate

Count the number of actually unique values in an IEnumerable

Referenced by NUnit.TestUtilities.UniqueValues.CountUniqueValuesTest().

static int NUnit.TestUtilities.UniqueValues.CountUniqueValues< T > ( ActualValueDelegate< T >  del,
int  count 
)
inlinestaticprivate
static int NUnit.TestUtilities.UniqueValues.CountUniqueValuesTest ( params int[]  values)
inlinestatic

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