StepNameToMethodName() public method

public StepNameToMethodName ( string stepName ) : string
stepName string
return string
コード例 #1
0
 public void StepNameToMethodName_ShouldReturnLegalMethodName()
 {
     SnippetBuilder sb = new SnippetBuilder();
     string stepName = "we're all wired";
     Assert.That(sb.StepNameToMethodName(stepName), Is.EqualTo("WereAllWired"));
 }
コード例 #2
0
 public void StepNameToMethodName_ShouldReturnLegalMethodName_TrailingComma()
 {
     SnippetBuilder sb = new SnippetBuilder();
     string stepName = "the separator is ,";
     Assert.That(sb.StepNameToMethodName(stepName), Is.EqualTo("TheSeparatorIs"));
 }