Fixed application path issue.

This commit is contained in:
kay.one 2011-11-02 19:09:00 -07:00
commit bb1f6649b5
2 changed files with 12 additions and 4 deletions

View file

@ -12,7 +12,6 @@ namespace NzbDrone.Common.Test
readonly EnviromentProvider enviromentController = new EnviromentProvider();
[Test]
public void Is_user_interactive_should_be_false()
{
enviromentController.IsUserInteractive.Should().BeTrue();
@ -41,6 +40,14 @@ namespace NzbDrone.Common.Test
Path.IsPathRooted(enviromentController.ApplicationPath).Should().BeTrue("Path is not rooted");
}
[Test]
public void ApplicationPath_should_find_iis_in_current_folder()
{
Directory.CreateDirectory(EnviromentProvider.IIS_FOLDER_NAME);
enviromentController.ApplicationPath.Should().BeEquivalentTo(Directory.GetCurrentDirectory());
}
[Test]
public void IsProduction_should_return_false_when_run_within_nunit()
{