Closed bartekpokerbartek closed 6 years ago
Hi,
You should be able to achieve that:
Go to Options > Unit Test Boilerplate Generator > Templates
Select and NUnit and Moq
Set 'Tested object creation format' to empty
Set 'Tested object reference format' to _unitUnderTest
Thanks, for the info, it worked great.
Kind regards.
Installed product versions
Description
Hello in Test Framework (NUnit) and Moq Framework (Moq) I have $TestMethods$ variable in template. Could You please advise how to change how generated functions are built? Can't find anything on how to do that.
For example I mean that function is generated like: `[Test] public void GetNewCardData_StateUnderTest_ExpectedBehavior() { // Arrange var unitUnderTest = CreateService();
but I want it to look like ie.: `[Test] public void GetNewCardData_StateUnderTest_ExpectedBehavior() { var result = _unitUnderTest.GetNewCardData();
Kind regards.