From 157bcd8b0f9623512d1f53efaa843f354d5c0e0b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 8 Nov 2011 09:48:34 -0800 Subject: [PATCH] AssemblyInfo.cs cleanup --- .../EnviromentProviderTest.cs | 20 ++++++--- .../NzbDrone.Common.Test.csproj | 4 +- NzbDrone.Common/ExceptioneerTarget.cs | 2 +- NzbDrone.Common/NzbDrone.Common.csproj | 1 + NzbDrone.Common/Properties/AssemblyInfo.cs | 26 ----------- .../Properties/SharedAssemblyInfo.cs | 19 +++----- NzbDrone.Core/NzbDrone.Core.csproj | 3 ++ NzbDrone.Core/Properties/AssemblyInfo.cs | 44 +------------------ NzbDrone.Update/NzbDrone.Update.csproj | 3 ++ NzbDrone.Update/Properties/AssemblyInfo.cs | 28 +----------- NzbDrone.Web/Content/NzbDrone.css | 11 ++--- NzbDrone.Web/Content/Slider.css | 2 - NzbDrone.Web/Controllers/SharedController.cs | 10 +++-- NzbDrone.Web/Global.asax.cs | 2 +- NzbDrone.Web/Models/CodeFile1.cs | 10 +++++ NzbDrone.Web/NzbDrone.Web.csproj | 4 ++ NzbDrone.Web/Properties/AssemblyInfo.cs | 32 +------------- NzbDrone.Web/Views/Series/Index.cshtml | 2 +- NzbDrone.Web/Views/Shared/Error.cshtml | 2 +- NzbDrone.Web/Views/Shared/Footer.cshtml | 6 +-- NzbDrone.Web/Views/Shared/_Layout.cshtml | 4 +- NzbDrone/NzbDrone.csproj | 3 ++ NzbDrone/Properties/AssemblyInfo.cs | 34 +------------- NzbDrone/Providers/MonitoringProvider.cs | 2 +- 24 files changed, 72 insertions(+), 202 deletions(-) rename NzbDrone.Common.Test/Properties/AssemblyInfo.cs => NzbDrone.Common/Properties/SharedAssemblyInfo.cs (51%) create mode 100644 NzbDrone.Web/Models/CodeFile1.cs diff --git a/NzbDrone.Common.Test/EnviromentProviderTest.cs b/NzbDrone.Common.Test/EnviromentProviderTest.cs index c5f43cc2c..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,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)); + } } } 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 + + +