PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/src/NUnit/util/Interfaces/ITestRunnerFactory.cs

#
C# | 33 lines | 10 code | 3 blank | 20 comment | 0 complexity | e57a62fb5c9293f200d8e7a834c367e2 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // This is free software licensed under the NUnit license. You
  3. // may obtain a copy of the license as well as information regarding
  4. // copyright ownership at http://nunit.org.
  5. // ****************************************************************
  6. using System;
  7. using NUnit.Core;
  8. namespace NUnit.Util
  9. {
  10. /// <summary>
  11. /// A Test Runner factory can supply a suitable test runner for a given package
  12. /// </summary>
  13. public interface ITestRunnerFactory
  14. {
  15. /// <summary>
  16. /// Return a suitable runner for the package provided as an argument
  17. /// </summary>
  18. /// <param name="package">The test package to be loaded by the runner</param>
  19. /// <returns>A TestRunner</returns>
  20. TestRunner MakeTestRunner(TestPackage package);
  21. /// <summary>
  22. /// Return true if the provided runner is suitable for reuse in loading
  23. /// the test package provided. Otherwise, return false.
  24. /// </summary>
  25. /// <param name="package"></param>
  26. /// <param name="runner"></param>
  27. /// <returns>True if the runner may be reused</returns>
  28. bool CanReuse(TestRunner runner, TestPackage package);
  29. }
  30. }