Gets or sets the name of a method present in the test fixture
whose purpose is to prevent some specific values to be generated.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.2.0.0 (3.2.528.0)
Syntax
Remarks
The method must accepts one argument of a type that represents a number, such as Decimal, Double, or Int32, and returns a Boolean value indicating whether the specified value must be accepted or rejected.
Examples
[TestFixture] public class MyTestFixture { [Test] public void Generate_filtered_sequence([SequentialNumbers(Start = 1, End = 100, Step = 1, Filter = "MyFilter")] int value) { // Code logic here... } public static bool MyFilter(int number) { return (n % 3 == 0) || (n % 10 == 0); } }
