PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/util/Extensibility/IProjectConverter.cs

#
C# | 32 lines | 9 code | 2 blank | 21 comment | 0 complexity | 6208065b75c7e11508d912ab7df6df72 MD5 | raw file
Possible License(s): GPL-2.0
  1. // ****************************************************************
  2. // Copyright 2008, Charlie Poole
  3. // This is free software licensed under the NUnit license. You may
  4. // obtain a copy of the license at http://nunit.org
  5. // ****************************************************************
  6. using System;
  7. namespace NUnit.Util.Extensibility
  8. {
  9. /// <summary>
  10. /// The IProjectConverter interface is implemented by any class
  11. /// that knows how to convert a foreign project format to an
  12. /// NUnitProject.
  13. /// </summary>
  14. public interface IProjectConverter
  15. {
  16. /// <summary>
  17. /// Returns true if the file indicated is one that this
  18. /// converter knows how to convert.
  19. /// </summary>
  20. /// <param name="path"></param>
  21. /// <returns></returns>
  22. bool CanConvertFrom( string path );
  23. /// <summary>
  24. /// Converts an external project returning an NUnitProject
  25. /// </summary>
  26. /// <param name="path"></param>
  27. /// <returns></returns>
  28. NUnitProject ConvertFrom( string path );
  29. }
  30. }