Class ReturnValueMustNotBeNullAssertion
Namespace: AutoFixture.Idioms.FsCheck
Assembly: AutoFixture.Idioms.FsCheck.dll
Encapsulates a unit test verifying that the return value for a public Query (a method that returns a value) is not null.
public class ReturnValueMustNotBeNullAssertion : IdiomaticAssertionInheritance
IdiomaticAssertion ← ReturnValueMustNotBeNullAssertion
Constructors
ReturnValueMustNotBeNullAssertion(ISpecimenBuilder)
public ReturnValueMustNotBeNullAssertion(ISpecimenBuilder builder)Parameters
builder ISpecimenBuilder
Properties
Builder
Gets the <see cref="ISpecimenBuilder"/> which create instances if the public Query is an instance method.
public ISpecimenBuilder Builder { get; }Property Value
ISpecimenBuilder
Methods
Verify(PropertyInfo)
Verifies that the return value for a Property is not null.
public override void Verify(PropertyInfo propertyInfo)Parameters
propertyInfo PropertyInfo
The property to verify.
Verify(MethodInfo)
Verifies that the return value for a method is not null.
public override void Verify(MethodInfo methodInfo)Parameters
methodInfo MethodInfo
The method to verify.