ignoringCase
val <T : CharSequence> CharSequenceContains.EntryPointStep<T, NoOpSearchBehaviour>.ignoringCase: CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>(source)
Defines that the v behaviour ignore case
shall be applied to this sophisticated contains
assertion.
Return
The newly created builder.
Samples
expect("ABC").toContain.ignoringCase.exactly(1).value("a")
expect("ABbC").toContain.ignoringCase.atLeast(2).value("b")
fails {
expect("AAAaaa").toContain.ignoringCase.atMost(3).value("a")
}
val <T : CharSequence> NotCheckerStep<T, NotSearchBehaviour>.ignoringCase: NotCheckerStep<T, IgnoringCaseSearchBehaviour>(source)
Defines that the search behaviour ignore case
shall be applied to this sophisticated contains not
assertion.
Return
The newly created builder.
Samples
expect("ABC").notToContain.ignoringCase.value("d")
fails { // because it contains a `d` which is the same as a `D` when case is ignored
expect("abcd").notToContain.ignoringCase.value("D")
}