/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
- // ****************************************************************
- // Copyright 2008, Charlie Poole
- // This is free software licensed under the NUnit license. You may
- // obtain a copy of the license at http://nunit.org
- // ****************************************************************
- using System;
-
- namespace NUnit.Util.Extensibility
- {
- /// <summary>
- /// The IProjectConverter interface is implemented by any class
- /// that knows how to convert a foreign project format to an
- /// NUnitProject.
- /// </summary>
- public interface IProjectConverter
- {
- /// <summary>
- /// Returns true if the file indicated is one that this
- /// converter knows how to convert.
- /// </summary>
- /// <param name="path"></param>
- /// <returns></returns>
- bool CanConvertFrom( string path );
-
- /// <summary>
- /// Converts an external project returning an NUnitProject
- /// </summary>
- /// <param name="path"></param>
- /// <returns></returns>
- NUnitProject ConvertFrom( string path );
- }
- }