Skip to content

Instantly share code, notes, and snippets.

@philippdolder
Created June 2, 2014 14:50
Show Gist options
  • Save philippdolder/7e2ea55a256e834fe017 to your computer and use it in GitHub Desktop.
Save philippdolder/7e2ea55a256e834fe017 to your computer and use it in GitHub Desktop.
Possible with R# Search&Replace Pattern?
namespace SearchPattern
{
using NUnit.Framework;
[TestFixture]
public class SearchPatternFakeTest
{
private Worker testee;
[SetUp]
public void SetUp()
{
this.testee = new Worker();
}
}
}
namespace SearchPattern
{
using FakeItEasy;
using NUnit.Framework;
[TestFixture]
public class SearchPatternFakeTest
{
private Worker testee;
private IInstructionProcessor instructionProcessor;
private IFileSystem fileSystem;
private ILogger logger;
private InstructionFileLoader instructionFileLoader;
private InstructionPreprocessorSelector instructionPreprocessorSelector;
private ProcessingReportGenerator processingReportGenerator;
private IVersion version;
[SetUp]
public void SetUp()
{
this.instructionProcessor = A.Fake<IInstructionProcessor>();
this.fileSystem = A.Fake<IFileSystem>();
this.logger = A.Fake<ILogger>();
this.instructionFileLoader = A.Fake<InstructionFileLoader>();
this.instructionPreprocessorSelector = A.Fake<InstructionPreprocessorSelector>();
this.processingReportGenerator = A.Fake<ProcessingReportGenerator>();
this.version = A.Fake<IVersion>();
this.testee = new Worker(
this.instructionProcessor,
this.fileSystem,
this.logger,
this.instructionFileLoader,
this.instructionPreprocessorSelector,
this.processingReportGenerator,
this.version);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment