Here are the examples of the csharp api NUnit.Util.NUnitProject.IsProjectFile(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : NUnitProject.cs
with MIT License
from roozbehid
with MIT License
from roozbehid
public static bool CanLoadAsProject( string path )
{
return IsProjectFile( path ) ||
VSProject.IsProjectFile( path ) ||
VSProject.IsSolutionFile( path );
}
19
Source : NUnitProject.cs
with MIT License
from roozbehid
with MIT License
from roozbehid
public static NUnitProject LoadProject( string path )
{
if ( NUnitProject.IsProjectFile( path ) )
{
NUnitProject project = new NUnitProject( path );
project.Load();
return project;
}
else if ( VSProject.IsProjectFile( path ) )
return NUnitProject.FromVSProject( path );
else if ( VSProject.IsSolutionFile( path ) )
return NUnitProject.FromVSSolution( path );
else
return NUnitProject.Fromreplacedembly( path );
}