I’m a big fan of R# and xBehave.net. So it was time to mix them up.
I can now write "my step".Step and press Tab and what I get is "my step"._(() => );.
Woohoo!
Here is how you can use a R# source template to create xBehave.net steps.
- reference the nuget package
JetBrains.Annotations - add the following class (note the attribute that comes from the reference nuget package)
namespace Your.Namespace
{
using JetBrains.Annotations;
public static class Templates
{
[SourceTemplate]
public static void Step(this string description)
{
/*$ $description$._(() => $END$); */
}
}
}