IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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) |
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.
|
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().
|
inlinestaticprivate |
Count the number of actually unique values in an IEnumerable
Referenced by NUnit.TestUtilities.UniqueValues.CountUniqueValuesTest().
|
inlinestaticprivate |
|
inlinestatic |