From c7f56c10915509494661d4ab8070a9f4d8219faa Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 20 Jun 2015 00:48:42 -0700 Subject: [PATCH] Fix ambiguous calls when compiling under mono --- .../Profiles/Delay/DelayProfileModule.cs | 2 +- src/NzbDrone.Integration.Test/NamingConfigTests.cs | 14 +++++++------- .../RootFolderIntegrationTest.cs | 2 +- .../SeriesIntegrationTest.cs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs b/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs index f18bdf6ef..41cee470b 100644 --- a/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs +++ b/src/NzbDrone.Api/Profiles/Delay/DelayProfileModule.cs @@ -22,7 +22,7 @@ namespace NzbDrone.Api.Profiles.Delay DeleteResource = DeleteProfile; SharedValidator.RuleFor(d => d.Tags).NotEmpty().When(d => d.Id != 1); - SharedValidator.RuleFor(d => d.Tags).EmptyCollection().When(d => d.Id == 1); + SharedValidator.RuleFor(d => d.Tags).EmptyCollection().When(d => d.Id == 1); SharedValidator.RuleFor(d => d.Tags).SetValidator(tagInUseValidator); SharedValidator.RuleFor(d => d.UsenetDelay).GreaterThanOrEqualTo(0); SharedValidator.RuleFor(d => d.TorrentDelay).GreaterThanOrEqualTo(0); diff --git a/src/NzbDrone.Integration.Test/NamingConfigTests.cs b/src/NzbDrone.Integration.Test/NamingConfigTests.cs index c78e9d868..52643cbae 100644 --- a/src/NzbDrone.Integration.Test/NamingConfigTests.cs +++ b/src/NzbDrone.Integration.Test/NamingConfigTests.cs @@ -47,7 +47,7 @@ namespace NzbDrone.Integration.Test config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}"; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -60,7 +60,7 @@ namespace NzbDrone.Integration.Test config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}"; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -73,7 +73,7 @@ namespace NzbDrone.Integration.Test config.AnimeEpisodeFormat = "{Series Title} - {season}x{episode:00} - {Episode Title}"; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -86,7 +86,7 @@ namespace NzbDrone.Integration.Test config.AnimeEpisodeFormat = "{Series Title} - {season} - {Episode Title}"; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -98,7 +98,7 @@ namespace NzbDrone.Integration.Test config.DailyEpisodeFormat = ""; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -110,7 +110,7 @@ namespace NzbDrone.Integration.Test config.DailyEpisodeFormat = ""; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test] @@ -121,7 +121,7 @@ namespace NzbDrone.Integration.Test config.SeriesFolderFormat = "This and That"; var errors = NamingConfig.InvalidPut(config); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } } } \ No newline at end of file diff --git a/src/NzbDrone.Integration.Test/RootFolderIntegrationTest.cs b/src/NzbDrone.Integration.Test/RootFolderIntegrationTest.cs index 149aa2c6d..bc136ff2a 100644 --- a/src/NzbDrone.Integration.Test/RootFolderIntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/RootFolderIntegrationTest.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Integration.Test }; var postResponse = RootFolders.InvalidPost(rootFolder); - postResponse.Should().NotBeEmpty(); + postResponse.Should().NotBeEmpty(); } } } \ No newline at end of file diff --git a/src/NzbDrone.Integration.Test/SeriesIntegrationTest.cs b/src/NzbDrone.Integration.Test/SeriesIntegrationTest.cs index 9e9a33a80..fb82b1ca2 100644 --- a/src/NzbDrone.Integration.Test/SeriesIntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/SeriesIntegrationTest.cs @@ -23,7 +23,7 @@ namespace NzbDrone.Integration.Test public void add_series_without_required_fields_should_return_badrequest() { var errors = Series.InvalidPost(new SeriesResource()); - errors.Should().NotBeEmpty(); + errors.Should().NotBeEmpty(); } [Test]