예제 #1
0
 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();
 }
예제 #2
0
        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> >());
        }
예제 #3
0
 public void AfterTest()
 {
     _testSuit.Reset();
 }
예제 #4
0
 public RunnerTests()
 {
     _suit.Reset();
 }
 public CommandExecutorTests()
 {
     _suit.Reset();
     _suit.SetDependencyToLooseMock <ILogger <CommandExecutor> >();
 }
예제 #6
0
 public SettingsParserTests()
 {
     _suit.Reset();
 }