Shouldly
Search
K
Comment on page

StartWith

ShouldStartWith

var target = "Homer";
target.ShouldStartWith("Bart");
Exception
target
should start with
"Bart"
but was
"Homer"

ShouldNotStartWith

var target = "Homer Simpson";
target.ShouldNotStartWith("Homer");
Exception
target
should not start with
"Homer"
but was
"Homer Simpson"