From 85d1ba6bbca450e524fc465837c89b7f6028db95 Mon Sep 17 00:00:00 2001 From: Patric Forsgard Date: Thu, 14 Aug 2014 13:59:59 +0200 Subject: [PATCH 1/2] baseclass should be abstract --- src/Tests/Nest.Tests.Unit/QueryParsers/BaseParserTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tests/Nest.Tests.Unit/QueryParsers/BaseParserTests.cs b/src/Tests/Nest.Tests.Unit/QueryParsers/BaseParserTests.cs index 469d914425f..31f8269d5be 100644 --- a/src/Tests/Nest.Tests.Unit/QueryParsers/BaseParserTests.cs +++ b/src/Tests/Nest.Tests.Unit/QueryParsers/BaseParserTests.cs @@ -9,7 +9,7 @@ namespace Nest.Tests.Unit.QueryParsers { [TestFixture] - public class BaseParserTests : BaseJsonTests + public abstract class BaseParserTests : BaseJsonTests { public ISearchRequest GetSearchDescriptorForQuery(Func, SearchDescriptor> create) { From beaa425041bc01be6e3938c762e88895802ef514 Mon Sep 17 00:00:00 2001 From: Patric Forsgard Date: Thu, 14 Aug 2014 17:23:06 +0200 Subject: [PATCH 2/2] baseclass should be abstract --- src/Tests/Nest.Tests.Integration/Core/Map/BaseMappingTests.cs | 2 +- src/Tests/Nest.Tests.Unit/BaseJsonTests.cs | 2 +- .../Core/AttributeBasedMap/BaseAttributeMappingTests.cs | 2 +- .../Nest.Tests.Unit/Core/Indices/Analysis/BaseAnalysisTests.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Tests/Nest.Tests.Integration/Core/Map/BaseMappingTests.cs b/src/Tests/Nest.Tests.Integration/Core/Map/BaseMappingTests.cs index 90a4e5ca798..5f24230d66c 100644 --- a/src/Tests/Nest.Tests.Integration/Core/Map/BaseMappingTests.cs +++ b/src/Tests/Nest.Tests.Integration/Core/Map/BaseMappingTests.cs @@ -7,7 +7,7 @@ namespace Nest.Tests.Integration.Core.Map { [TestFixture] - public class BaseMappingTests : IntegrationTests + public abstract class BaseMappingTests : IntegrationTests { [TestFixtureSetUp] public void Initialize() diff --git a/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs b/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs index 29079c0cbdf..b57be69b41f 100644 --- a/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs +++ b/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs @@ -17,7 +17,7 @@ public static class UnitTestDefaults public static readonly string DefaultIndex = "nest_test_data"; } - public class BaseJsonTests + public abstract class BaseJsonTests { protected readonly IConnectionSettingsValues _settings; /// diff --git a/src/Tests/Nest.Tests.Unit/Core/AttributeBasedMap/BaseAttributeMappingTests.cs b/src/Tests/Nest.Tests.Unit/Core/AttributeBasedMap/BaseAttributeMappingTests.cs index 797fb9c556a..88e7937e9fc 100644 --- a/src/Tests/Nest.Tests.Unit/Core/AttributeBasedMap/BaseAttributeMappingTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/AttributeBasedMap/BaseAttributeMappingTests.cs @@ -3,7 +3,7 @@ namespace Nest.Tests.Unit.Core.AttributeBasedMap { - public class BaseAttributeMappingTests : BaseJsonTests + public abstract class BaseAttributeMappingTests : BaseJsonTests { protected string CreateMapFor() where T : class { diff --git a/src/Tests/Nest.Tests.Unit/Core/Indices/Analysis/BaseAnalysisTests.cs b/src/Tests/Nest.Tests.Unit/Core/Indices/Analysis/BaseAnalysisTests.cs index 79ca55866fa..ff7ca7e45e1 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Indices/Analysis/BaseAnalysisTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Indices/Analysis/BaseAnalysisTests.cs @@ -5,7 +5,7 @@ namespace Nest.Tests.Unit.Core.Indices.Analysis.Tokenizers { [TestFixture] - public class BaseAnalysisTests : BaseJsonTests + public abstract class BaseAnalysisTests : BaseJsonTests { public IIndicesOperationResponse Analysis(Func analysisSelector) {