public void FormatShouldReturnExpectedDisplayNameFromMethodWithSpacesInsteadOfUnderscores(string name, string expected) { var formatter = new DisplayNameFormatter(display: Method, displayOptions: ReplaceUnderscoreWithSpace); var actual = formatter.Format(name); Assert.Equal(expected, actual); }
public void FormatShouldReturnExpectedDisplayNameFromMethodWithReplacedSpacesAndOperators(string name, string expected) { var formatter = new DisplayNameFormatter(display: Method, displayOptions: ReplaceUnderscoreWithSpace | UseOperatorMonikers); var actual = formatter.Format(name); Assert.Equal(expected, actual); }
public void FormatShouldReturnExpectedDisplayNameFromMethodWithAllOptions(string name, string expected) { var formatter = new DisplayNameFormatter(display: Method, displayOptions: All); var actual = formatter.Format(name); Assert.Equal(expected, actual); }
public void FormatShouldReturnExpectedDisplayNameFromClassAndMethodWithReplacedSpacesAndEscapeSequences(string name, string expected) { var formatter = new DisplayNameFormatter(display: ClassAndMethod, displayOptions: ReplaceUnderscoreWithSpace | UseEscapeSequences); var actual = formatter.Format(name); Assert.Equal(expected, actual); }