I am currently working on a open source project that involves the display of lots of .NET file names within flexible tiles (the tiles are sized based on the display). It is a pretty common scenario to have reasonably long file names that won’t fit nicely on a tile. For example, CustomerEntitlementRepository.cs needs a pretty […]
You can subscribe to the regex tag micro-feed.
Here are some useful regular expressions that can improve your SpecFlow step definitions. All of the examples are ready to drop-in to a C# string, so they are pre-escaped for your pleasure (for example, the useful RegEx ([^\”]*) is listed as “”([^\””]*)”” so you can use it in a definition like this: [Given(@”this line accepts […]
This can be a pretty common situation in SpecFlow, thanks to the trusty default RegEx that SpecFlow uses: Scenario: Binding Test Given I have defined a step for the second line of this specification, but not the third And this line accepts “a string” in And this line accepts “a string” in and “another string” […]