public void TearDown() { // You could create a new test suit for each test, but using Reset() after (or before) each test // is more performant. Becomes meaningful when you have some hundreds of tests. // For xunit this should happen in the constructor of the test. _testSuit.Reset(); }
public RunnerIntegratedTests() { _suit.Reset(); // RobotRunner has a dependency to ICommandExecutor which is set up to be an instance // of the real CommandExecutor with ILogger<CommandExecutor> dependency to be a loose mock _suit.SetDependencyToTestSuit <ICommandExecutor, CommandExecutor>(); _suit.SetupDependencySuit <ICommandExecutor>(s => s.SetDependencyToLooseMock <ILogger <CommandExecutor> >()); }
public void AfterTest() { _testSuit.Reset(); }
public RunnerTests() { _suit.Reset(); }
public CommandExecutorTests() { _suit.Reset(); _suit.SetDependencyToLooseMock <ILogger <CommandExecutor> >(); }
public SettingsParserTests() { _suit.Reset(); }