Created
February 20, 2017 10:07
-
-
Save gasparnagy/027210126808cc13a5f3bd5176815590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test, Combinatorial] | |
public void RecognizeParametrizedText_NumberParams( | |
[Values("When_using_VALUE_as_parameter", "WhenUsingVALUEAsParameter", "WhenUsing_VALUE_AsParameter")] string methodName, | |
[Values("1", "123", "-123", "12.3", "£123")] string paramText) | |
{ | |
var sut = CreateSut(); | |
var result = CallCalculateRegexFromMethodAndAssertRegex(sut, StepDefinitionType.When, | |
CreateBindingMethod(methodName, "value")); | |
var match = AssertMatches(result, $ "using {paramText} as parameter"); | |
AssertParamMatch(match, paramText); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment