diff --git a/NzbDrone.App.Test/Fixtures.cs b/NzbDrone.App.Test/Fixtures.cs
index b3a5640d5..4089933e0 100644
--- a/NzbDrone.App.Test/Fixtures.cs
+++ b/NzbDrone.App.Test/Fixtures.cs
@@ -3,6 +3,6 @@ using NUnit.Framework;
using NzbDrone.Test.Common;
[SetUpFixture]
-public class Fixtures : LoggingFixtures
+public class Fixtures : LoggingTest
{
}
diff --git a/NzbDrone.Common.Test/EnviromentProviderTest.cs b/NzbDrone.Common.Test/EnviromentProviderTest.cs
index b4d7d6c3d..9032ab740 100644
--- a/NzbDrone.Common.Test/EnviromentProviderTest.cs
+++ b/NzbDrone.Common.Test/EnviromentProviderTest.cs
@@ -1,5 +1,6 @@
// ReSharper disable InconsistentNaming
+using System;
using System.IO;
using FluentAssertions;
using NUnit.Framework;
@@ -9,35 +10,21 @@ namespace NzbDrone.Common.Test
[TestFixture]
public class EnviromentProviderTest
{
- readonly EnviromentProvider enviromentController = new EnviromentProvider();
-
- [Test]
- public void Is_user_interactive_should_be_false()
- {
- enviromentController.IsUserInteractive.Should().BeTrue();
- }
-
- [Test]
- public void Log_path_should_not_be_empty()
- {
- enviromentController.LogPath.Should().NotBeBlank();
- Path.IsPathRooted(enviromentController.LogPath).Should().BeTrue("Path is not rooted");
-
- }
+ 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");
}
@@ -45,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]
@@ -53,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));
+ }
}
}
diff --git a/NzbDrone.Common.Test/Fixtures.cs b/NzbDrone.Common.Test/Fixtures.cs
index b3a5640d5..4089933e0 100644
--- a/NzbDrone.Common.Test/Fixtures.cs
+++ b/NzbDrone.Common.Test/Fixtures.cs
@@ -3,6 +3,6 @@ using NUnit.Framework;
using NzbDrone.Test.Common;
[SetUpFixture]
-public class Fixtures : LoggingFixtures
+public class Fixtures : LoggingTest
{
}
diff --git a/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj b/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
index 2efe649e7..bf72a48ee 100644
--- a/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
+++ b/NzbDrone.Common.Test/NzbDrone.Common.Test.csproj
@@ -65,7 +65,6 @@
-
@@ -86,6 +85,9 @@
NzbDrone.Test.Dummy
+
+
+