Class RandomBooleanSequenceGenerator
Creates random value true or false.
Inheritance
System.Object
RandomBooleanSequenceGenerator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class RandomBooleanSequenceGenerator : ISpecimenBuilder
Constructors
| Improve this Doc View SourceRandomBooleanSequenceGenerator()
Initializes a new instance of the RandomBooleanSequenceGenerator class.
Declaration
public RandomBooleanSequenceGenerator()
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Returns true or false randomly.
Declaration
public object Create(object request, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The request that describes what to create. |
ISpecimenContext | context | Not used. |
Returns
Type | Description |
---|---|
System.Object | true or false generated randomly using System.Random,
if |