MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

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 Source

ShouldPassForThe<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.
| Improve this Doc View Source

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.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX