mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
AssemblyInfo.cs cleanup
This commit is contained in:
parent
b43397752e
commit
157bcd8b0f
24 changed files with 72 additions and 202 deletions
|
@ -1,5 +1,6 @@
|
|||
// ReSharper disable InconsistentNaming
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
|
@ -9,21 +10,21 @@ namespace NzbDrone.Common.Test
|
|||
[TestFixture]
|
||||
public class EnviromentProviderTest
|
||||
{
|
||||
readonly EnviromentProvider enviromentController = new EnviromentProvider();
|
||||
readonly EnviromentProvider enviromentProvider = new EnviromentProvider();
|
||||
|
||||
[Test]
|
||||
public void StartupPath_should_not_be_empty()
|
||||
{
|
||||
enviromentController.StartUpPath.Should().NotBeBlank();
|
||||
Path.IsPathRooted(enviromentController.StartUpPath).Should().BeTrue("Path is not rooted");
|
||||
enviromentProvider.StartUpPath.Should().NotBeBlank();
|
||||
Path.IsPathRooted(enviromentProvider.StartUpPath).Should().BeTrue("Path is not rooted");
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ApplicationPath_should_not_be_empty()
|
||||
{
|
||||
enviromentController.ApplicationPath.Should().NotBeBlank();
|
||||
Path.IsPathRooted(enviromentController.ApplicationPath).Should().BeTrue("Path is not rooted");
|
||||
enviromentProvider.ApplicationPath.Should().NotBeBlank();
|
||||
Path.IsPathRooted(enviromentProvider.ApplicationPath).Should().BeTrue("Path is not rooted");
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,7 +32,7 @@ namespace NzbDrone.Common.Test
|
|||
public void ApplicationPath_should_find_iis_in_current_folder()
|
||||
{
|
||||
Directory.CreateDirectory(EnviromentProvider.IIS_FOLDER_NAME);
|
||||
enviromentController.ApplicationPath.Should().BeEquivalentTo(Directory.GetCurrentDirectory());
|
||||
enviromentProvider.ApplicationPath.Should().BeEquivalentTo(Directory.GetCurrentDirectory());
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -39,5 +40,12 @@ namespace NzbDrone.Common.Test
|
|||
{
|
||||
EnviromentProvider.IsProduction.Should().BeFalse();
|
||||
}
|
||||
|
||||
[TestCase("0.0.0.0")]
|
||||
[TestCase("1.0.0.0")]
|
||||
public void Application_version_should_not_be_default(string version)
|
||||
{
|
||||
enviromentProvider.Version.Should().NotBe(new Version(version));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue