UNPKG

alsatian-fluent-assertions

Version:

Fluent assertions extension to Alsatian xUnit framework.

18 lines (17 loc) 1.64 kB
import { IPropertiesMatcherWithHelpers } from "./i-properties-matcher-with-helpers"; import { PropertiesMatcher } from "./properties-matcher"; import { SubsetPropertyDict, LocationMode, MatchMode, SubsetPropertyLiteralsDict, SubsetPropertyAssertsDict, AllPropertyAssertsDict, AssertionContext } from "../types"; import { INarrowableFluentCore } from "./i-narrowable-fluent-core"; import { IFluentCore } from "./i-fluent-core"; export declare class PropertiesMatcherWithHelpers<T, TNext, TPrev> extends PropertiesMatcher<T, TNext, TPrev> implements IPropertiesMatcherWithHelpers<T, TNext, TPrev> { constructor(actualValue: any, nextValue: any, initial: boolean, prevCore?: IFluentCore<any, any, any>, ctxt?: AssertionContext); has<K extends keyof T>(selector: (o: T) => T[K]): INarrowableFluentCore<T, T[K], TPrev>; has<K extends keyof T>(key: K): INarrowableFluentCore<T, T[K], TPrev>; has<T2 extends Array<any>>(expected: T2, location?: LocationMode, match?: MatchMode): IFluentCore<T, TNext, TPrev>; has(subsetDict: SubsetPropertyDict<T>, matchMode?: MatchMode.normal): IFluentCore<T, TNext, TPrev>; has(subsetDict: SubsetPropertyLiteralsDict<T>, matchMode: MatchMode.literal): IFluentCore<T, TNext, TPrev>; has(subsetDict: SubsetPropertyAssertsDict<T>, matchMode: MatchMode.asserts): IFluentCore<T, TNext, TPrev>; hasAsserts<T2 extends Array<any>>(expected: T2, location?: LocationMode): IFluentCore<T, TNext, TPrev>; hasAsserts(expected: SubsetPropertyAssertsDict<T>): IFluentCore<T, TNext, TPrev>; hasAllAsserts(expected: AllPropertyAssertsDict<T>): IFluentCore<T, TNext, TPrev>; }