TestimoX

API Reference

Class

ObjectTestBuilder

Namespace TestimoX.Testing.TestBuilder
Assembly TestimoX

Object-level test builder.

Inheritance

  • Object
  • ObjectTestBuilder

Methods

public TestBuilder HasProperty(String propertyName) #
Returns: TestBuilder

Requires that the current object exposes a public property with the given name.

Parameters

propertyName System.String requiredposition: 0
Property name to look for.
public TestBuilder IsType<T>() #
Returns: TestBuilder

Type Parameters

T
IsType``1() #

Requires that the current object is of type T.

public TestBuilder Satisfies(Func<Object, Boolean> predicate) #
Returns: TestBuilder

Adds a predicate that the current object must satisfy.

Parameters

predicate System.Func{System.Object,System.Boolean} requiredposition: 0
Function returning true when the object meets the condition.