mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Fixed application path issue.
This commit is contained in:
parent
5aecd63d09
commit
bb1f6649b5
2 changed files with 12 additions and 4 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue