public void StepNameToMethodName_ShouldReturnLegalMethodName() { SnippetBuilder sb = new SnippetBuilder(); string stepName = "we're all wired"; Assert.That(sb.StepNameToMethodName(stepName), Is.EqualTo("WereAllWired")); }
public void StepNameToMethodName_ShouldReturnLegalMethodName_TrailingComma() { SnippetBuilder sb = new SnippetBuilder(); string stepName = "the separator is ,"; Assert.That(sb.StepNameToMethodName(stepName), Is.EqualTo("TheSeparatorIs")); }