Interface IBaseTestBuilderWithComponent
Base class for all test builders with component.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Base
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IBaseTestBuilderWithComponent : IBaseTestBuilder
Methods
| Improve this Doc View SourceShouldPassForThe<TComponent>(Action<TComponent>)
Tests whether the provided component type passes the given assertions.
Declaration
IAndTestBuilder ShouldPassForThe<TComponent>(Action<TComponent> assertions)where TComponent : class
Parameters
Type | Name | Description |
---|---|---|
System.Action<TComponent> | assertions | Action containing assertions on the provided component. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder | The same IBaseTestBuilderWithComponent. |
Type Parameters
Name | Description |
---|---|
TComponent | Type of component to test. |
ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
Tests whether the provided component passes the given predicate.
Declaration
IAndTestBuilder ShouldPassForThe<TComponent>(Func<TComponent, bool> predicate)where TComponent : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<TComponent, System.Boolean> | predicate | Predicate testing the provided component. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder | The same IBaseTestBuilderWithComponent. |
Type Parameters
Name | Description |
---|---|
TComponent | Type of component to test. |