PageRenderTime 44ms CodeModel.GetById 38ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
C# | 32 lines | 9 code | 2 blank | 21 comment | 0 complexity | 6208065b75c7e11508d912ab7df6df72 MD5 | raw file
 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// ****************************************************************
 6using System;
 7
 8namespace NUnit.Util.Extensibility
 9{
10	/// <summary>
11	/// The IProjectConverter interface is implemented by any class
12	/// that knows how to convert a foreign project format to an
13	/// NUnitProject.
14	/// </summary>
15	public interface IProjectConverter
16	{
17		/// <summary>
18		/// Returns true if the file indicated is one that this
19		/// converter knows how to convert.
20		/// </summary>
21		/// <param name="path"></param>
22		/// <returns></returns>
23		bool CanConvertFrom( string path );
24
25		/// <summary>
26		/// Converts an external project returning an NUnitProject
27		/// </summary>
28		/// <param name="path"></param>
29		/// <returns></returns>
30		NUnitProject ConvertFrom( string path );
31	}
32}