public void it_is_not_case_sensitive() { var def = new StepDefinition(this, this.GetType().GetMethod("given_a_foo")); bool matches = def.Matches(new Step { Type = StepType.Given, Text = "GIVEN A FOO" }); matches.Should().Be.True(); }
public void it_matches_steps_with_punctuation() { var def = new StepDefinition(this, this.GetType().GetMethod("given_a_foo")); bool matches = def.Matches(new Step { Type = StepType.Given, Text = "give'n a: foo!" }); matches.Should().Be.True(); }