API Reference
Class
ObjectTestBuilder
Object-level test builder.
Inheritance
- Object
- ObjectTestBuilder
Methods
public TestBuilder HasProperty(String propertyName) #Returns:
TestBuilderRequires that the current object exposes a public property with the given name.
Parameters
- propertyName System.String
- Property name to look for.
IsType``1() #Requires that the current object is of type T.
public TestBuilder Satisfies(Func<Object, Boolean> predicate) #Returns:
TestBuilderAdds a predicate that the current object must satisfy.
Parameters
- predicate System.Func{System.Object,System.Boolean}
- Function returning true when the object meets the condition.