From 892823e4f6b5cd27c6dbf5f7a457143ca69c8e30 Mon Sep 17 00:00:00 2001 From: bubibubi Date: Sun, 3 Sep 2017 11:37:19 +0200 Subject: [PATCH] Added Design tests --- EntityFrameworkCore.Jet.sln | 11 ++++++ ... EFCore.Jet.Design.FunctionalTests.csproj} | 38 +++++++++---------- ...Test.cs => JetDatabaseModelFactoryTest.cs} | 13 ++----- ...lFixture.cs => JetDatabaseModelFixture.cs} | 18 ++++----- .../Properties/AssemblyInfo.cs | 35 +---------------- .../E2E_AllFluentAPI/E2EContext.expected | 2 +- .../AttributesContext.expected | 2 +- .../NonNullBoolWithDefaultContext.cs | 2 +- .../ExpectedResults/StringKeysContext.cs | 2 +- .../ReverseEngineering/JetE2EFixture.cs | 12 ++++++ .../{SqlCeE2ETests.cs => JetE2ETests.cs} | 25 ++++++------ .../ReverseEngineering/SqlCeE2EFixture.cs | 12 ------ ...est.cs => ScaffoldingTypeMapperJetTest.cs} | 8 ++-- .../Properties/AssemblyInfo.cs | 4 +- 14 files changed, 80 insertions(+), 104 deletions(-) rename test/EFCore.Jet.Design.FunctionalTest/{EntityFramework.SqlServerCompact40.Design.FunctionalTest.csproj => EFCore.Jet.Design.FunctionalTests.csproj} (94%) rename test/EFCore.Jet.Design.FunctionalTest/{SqlCeDatabaseModelFactoryTest.cs => JetDatabaseModelFactoryTest.cs} (95%) rename test/EFCore.Jet.Design.FunctionalTest/{SqlCeDatabaseModelFixture.cs => JetDatabaseModelFixture.cs} (73%) create mode 100644 test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2EFixture.cs rename test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/{SqlCeE2ETests.cs => JetE2ETests.cs} (94%) delete mode 100644 test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2EFixture.cs rename test/EFCore.Jet.Design.FunctionalTest/{ScaffoldingTypeMapperSqlCeTest.cs => ScaffoldingTypeMapperJetTest.cs} (96%) diff --git a/EntityFrameworkCore.Jet.sln b/EntityFrameworkCore.Jet.sln index 2d9af7c..7c3a75e 100644 --- a/EntityFrameworkCore.Jet.sln +++ b/EntityFrameworkCore.Jet.sln @@ -35,6 +35,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{B7FF1850-2 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFCore.Jet.Tests", "test\EFCore.Jet.Tests\EFCore.Jet.Tests.csproj", "{C38B58D7-F346-40A2-9849-D12CB9EC5C69}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFCore.Jet.Design.FunctionalTests", "test\EFCore.Jet.Design.FunctionalTest\EFCore.Jet.Design.FunctionalTests.csproj", "{543477FB-CF81-446D-AB02-1E41382DED5B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -91,6 +93,14 @@ Global {C38B58D7-F346-40A2-9849-D12CB9EC5C69}.Release|Any CPU.Build.0 = Release|Any CPU {C38B58D7-F346-40A2-9849-D12CB9EC5C69}.Release|x86.ActiveCfg = Release|Any CPU {C38B58D7-F346-40A2-9849-D12CB9EC5C69}.Release|x86.Build.0 = Release|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Debug|x86.ActiveCfg = Debug|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Debug|x86.Build.0 = Debug|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Release|Any CPU.Build.0 = Release|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Release|x86.ActiveCfg = Release|Any CPU + {543477FB-CF81-446D-AB02-1E41382DED5B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -102,6 +112,7 @@ Global {50CA2970-B995-4D28-9F6C-F7CA4940F23A} = {6A8DE399-1804-4113-A408-F23B7F5C9CAC} {3C88D49A-7EF2-42BA-A8D7-9DF7D358FD24} = {6A8DE399-1804-4113-A408-F23B7F5C9CAC} {C38B58D7-F346-40A2-9849-D12CB9EC5C69} = {6A8DE399-1804-4113-A408-F23B7F5C9CAC} + {543477FB-CF81-446D-AB02-1E41382DED5B} = {6A8DE399-1804-4113-A408-F23B7F5C9CAC} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {9359773D-6399-447E-9814-6CB41C2FB664} diff --git a/test/EFCore.Jet.Design.FunctionalTest/EntityFramework.SqlServerCompact40.Design.FunctionalTest.csproj b/test/EFCore.Jet.Design.FunctionalTest/EFCore.Jet.Design.FunctionalTests.csproj similarity index 94% rename from test/EFCore.Jet.Design.FunctionalTest/EntityFramework.SqlServerCompact40.Design.FunctionalTest.csproj rename to test/EFCore.Jet.Design.FunctionalTest/EFCore.Jet.Design.FunctionalTests.csproj index 2423105..a5b5b62 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/EntityFramework.SqlServerCompact40.Design.FunctionalTest.csproj +++ b/test/EFCore.Jet.Design.FunctionalTest/EFCore.Jet.Design.FunctionalTests.csproj @@ -7,8 +7,8 @@ {543477FB-CF81-446D-AB02-1E41382DED5B} Library Properties - EntityFramework.SqlServerCompact40.Design.FunctionalTest - EntityFramework.SqlServerCompact40.Design.FunctionalTest + EntityFrameworkCore.Jet.Design.FunctionalTests + EntityFrameworkCore.Jet.Design.FunctionalTests v4.6.1 512 @@ -33,8 +33,8 @@ 4 - - ReverseEngineering\SqlCeTestStore.cs + + JetTestStore.cs @@ -52,11 +52,11 @@ Always - - - - - + + + + + @@ -245,10 +245,6 @@ - - False - ..\..\..\..\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop\System.Data.SqlServerCe.dll - ..\..\packages\System.Diagnostics.DiagnosticSource.4.4.1\lib\net46\System.Diagnostics.DiagnosticSource.dll @@ -282,16 +278,20 @@ ..\..\packages\xunit.extensibility.execution.2.2.0\lib\net452\xunit.execution.desktop.dll - - - {0bdb0cbb-c42a-45e5-8518-14e0c31119ad} - EntityFramework.SqlServerCompact40 - - + + + {d6966b04-4c38-4925-bcde-f8655f38d04c} + EFCore.Jet + + + {88be8b4f-8da9-42b9-9a1f-839451ba5f8c} + System.Data.Jet + + diff --git a/test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFactoryTest.cs b/test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFactoryTest.cs similarity index 95% rename from test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFactoryTest.cs rename to test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFactoryTest.cs index 2ed0c2b..96238ee 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFactoryTest.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFactoryTest.cs @@ -3,17 +3,12 @@ using System.Collections.Generic; using System.Linq; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Scaffolding; -using Microsoft.EntityFrameworkCore.Scaffolding.Internal; using Microsoft.EntityFrameworkCore.Scaffolding.Metadata; -using Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal; -using Microsoft.EntityFrameworkCore.Specification.Tests; -using Microsoft.Extensions.Logging; using Xunit; -namespace Microsoft.EntityFrameworkCore +namespace EntityFrameworkCore.Jet.Design.FunctionalTests { - public class SqlCeDatabaseModelFactoryTest : IClassFixture + public class JetDatabaseModelFactoryTest : IClassFixture { [Fact] public void It_reads_tables() @@ -284,12 +279,12 @@ CREATE TABLE [MountainsColumns] ( Assert.Empty(table.ForeignKeys); } - private readonly SqlCeDatabaseModelFixture _fixture; + private readonly JetDatabaseModelFixture _fixture; public DatabaseModel CreateModel(List createSql, IEnumerable tables = null) => _fixture.CreateModel(createSql, tables); - public SqlCeDatabaseModelFactoryTest(SqlCeDatabaseModelFixture fixture) + public JetDatabaseModelFactoryTest(JetDatabaseModelFixture fixture) { _fixture = fixture; } diff --git a/test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFixture.cs b/test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFixture.cs similarity index 73% rename from test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFixture.cs rename to test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFixture.cs index a8a20df..a0745d9 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/SqlCeDatabaseModelFixture.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/JetDatabaseModelFixture.cs @@ -2,21 +2,21 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using EntityFramework.Jet.FunctionalTests; +using EntityFrameworkCore.Jet.Scaffolding.Internal; +using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Internal; -using Microsoft.EntityFrameworkCore.Scaffolding.Internal; using Microsoft.EntityFrameworkCore.Scaffolding.Metadata; using Microsoft.EntityFrameworkCore.TestUtilities; -using Microsoft.EntityFrameworkCore.Utilities; using Microsoft.Extensions.Logging; -using Microsoft.EntityFrameworkCore.Specification.Tests; -namespace Microsoft.EntityFrameworkCore +namespace EntityFrameworkCore.Jet.Design.FunctionalTests { - public class SqlCeDatabaseModelFixture : IDisposable + public class JetDatabaseModelFixture : IDisposable { - public SqlCeDatabaseModelFixture() + public JetDatabaseModelFixture() { - TestStore = SqlCeTestStore.CreateScratch(true); + TestStore = JetTestStore.CreateScratch(true); } public TestDesignLoggerFactory TestDesignLoggerFactory { get; } = new TestDesignLoggerFactory(); @@ -28,7 +28,7 @@ namespace Microsoft.EntityFrameworkCore TestStore.ExecuteNonQuery(sql); } - return new SqlCeDatabaseModelFactory( + return new JetDatabaseModelFactory( new DiagnosticsLogger( TestDesignLoggerFactory, new LoggingOptions(), @@ -38,7 +38,7 @@ namespace Microsoft.EntityFrameworkCore public IEnumerable Query(string sql, params object[] parameters) => TestStore.Query(sql, parameters); - public SqlCeTestStore TestStore { get; } + public JetTestStore TestStore { get; } public void ExecuteNonQuery(string sql) => TestStore.ExecuteNonQuery(sql); diff --git a/test/EFCore.Jet.Design.FunctionalTest/Properties/AssemblyInfo.cs b/test/EFCore.Jet.Design.FunctionalTest/Properties/AssemblyInfo.cs index 8e1179a..e30d64b 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/Properties/AssemblyInfo.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/Properties/AssemblyInfo.cs @@ -1,35 +1,4 @@ using System.Reflection; -using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EntityFramework.SqlServerCompact40.Design.FunctionalTest")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EntityFramework.SqlServerCompact40.Design.FunctionalTest")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("543477fb-cf81-446d-ab02-1e41382ded5b")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyTitle("EntityFrameworkCore.Jet.Design.FunctionalTests")] +[assembly: AssemblyDescription("Design functional (integration) tests for Jet Entity framework core provider. These tests are original EF Core provider tests")] \ No newline at end of file diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_AllFluentAPI/E2EContext.expected b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_AllFluentAPI/E2EContext.expected index 2e6c086..43fa6a8 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_AllFluentAPI/E2EContext.expected +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_AllFluentAPI/E2EContext.expected @@ -27,7 +27,7 @@ namespace E2ETest.Namespace if (!optionsBuilder.IsConfigured) { #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. - optionsBuilder.UseSqlCe(@"Data Source=E2E.sdf"); + optionsBuilder.UseJet(@"Data Source=E2E.sdf"); } } diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_UseAttributesInsteadOfFluentApi/AttributesContext.expected b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_UseAttributesInsteadOfFluentApi/AttributesContext.expected index ae1338e..b9edd45 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_UseAttributesInsteadOfFluentApi/AttributesContext.expected +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/E2E_UseAttributesInsteadOfFluentApi/AttributesContext.expected @@ -27,7 +27,7 @@ namespace E2ETest.Namespace if (!optionsBuilder.IsConfigured) { #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. - optionsBuilder.UseSqlCe(@"{{connectionString}}"); + optionsBuilder.UseJet(@"{{connectionString}}"); } } diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/NonNullBoolWithDefaultContext.cs b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/NonNullBoolWithDefaultContext.cs index 0b3dc12..9cac827 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/NonNullBoolWithDefaultContext.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/NonNullBoolWithDefaultContext.cs @@ -13,7 +13,7 @@ namespace E2ETest.Namespace if (!optionsBuilder.IsConfigured) { #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. - optionsBuilder.UseSqlCe(@"{{connectionString}}"); + optionsBuilder.UseJet(@"{{connectionString}}"); } } diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/StringKeysContext.cs b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/StringKeysContext.cs index 4774b1f..aaacaf5 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/StringKeysContext.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/ExpectedResults/StringKeysContext.cs @@ -14,7 +14,7 @@ namespace E2ETest.Namespace if (!optionsBuilder.IsConfigured) { #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. - optionsBuilder.UseSqlCe(@"{{connectionString}}"); + optionsBuilder.UseJet(@"{{connectionString}}"); } } diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2EFixture.cs b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2EFixture.cs new file mode 100644 index 0000000..d8009fb --- /dev/null +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2EFixture.cs @@ -0,0 +1,12 @@ +using EntityFramework.Jet.FunctionalTests; + +namespace EntityFrameworkCore.Jet.Design.FunctionalTests.ReverseEngineering +{ + public class JetE2EFixture + { + public JetE2EFixture() + { + JetTestStore.GetOrCreateShared("E2E", () => { }); + } + } +} diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2ETests.cs b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2ETests.cs similarity index 94% rename from test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2ETests.cs rename to test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2ETests.cs index a1358d1..f2c301b 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2ETests.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/JetE2ETests.cs @@ -1,24 +1,25 @@ using System.Collections.Generic; +using System.Data.Jet; using System.IO; using System.Linq; -using Microsoft.EntityFrameworkCore.Scaffolding; +using EntityFramework.Jet.FunctionalTests; +using EntityFrameworkCore.Jet.Design.Internal; +using Microsoft.EntityFrameworkCore.ReverseEngineering; using Microsoft.EntityFrameworkCore.Scaffolding.Internal; +using Microsoft.EntityFrameworkCore.TestUtilities; +using Microsoft.EntityFrameworkCore.TestUtilities.Xunit; using Microsoft.Extensions.DependencyInjection; using Xunit; using Xunit.Abstractions; -using Microsoft.EntityFrameworkCore.ReverseEngineering; -using Microsoft.EntityFrameworkCore.TestUtilities.Xunit; -using Microsoft.EntityFrameworkCore.TestUtilities; -using Microsoft.EntityFrameworkCore.Specification.Tests; -namespace EntityFramework.SqlServerCompact40.Design.FunctionalTest.ReverseEngineering +namespace EntityFrameworkCore.Jet.Design.FunctionalTests.ReverseEngineering { - public class SqlCeE2ETests : E2ETestBase, IClassFixture + public class JetE2ETests : E2ETestBase, IClassFixture { protected override string ProviderName => "EntityFrameworkCore.SqlServerCompact40.Design"; protected override void ConfigureDesignTimeServices(IServiceCollection services) - => new SqlCeDesignTimeServices().ConfigureDesignTimeServices(services); + => new JetDesignTimeServices().ConfigureDesignTimeServices(services); public virtual string TestNamespace => "E2ETest.Namespace"; public virtual string TestProjectDir => Path.Combine("E2ETest", "Output"); @@ -67,12 +68,12 @@ namespace EntityFramework.SqlServerCompact40.Design.FunctionalTest.ReverseEngine }; // ReSharper disable once UnusedParameter.Local - public SqlCeE2ETests(SqlCeE2EFixture fixture, ITestOutputHelper output) + public JetE2ETests(JetE2EFixture fixture, ITestOutputHelper output) : base(output) { } - private string _connectionString = @"Data Source=E2E.sdf"; + private string _connectionString = JetConnection.GetConnectionString(@"E2E.accdb"); private static readonly List _expectedEntityTypeFiles = new List { @@ -165,7 +166,7 @@ namespace EntityFramework.SqlServerCompact40.Design.FunctionalTest.ReverseEngine [Fact] public void Non_null_boolean_columns_with_default_constraint_become_nullable_properties() { - using (var scratch = SqlCeTestStore.Create("NonNullBooleanWithDefaultConstraint")) + using (var scratch = JetTestStore.Create("NonNullBooleanWithDefaultConstraint")) { scratch.ExecuteNonQuery(@" CREATE TABLE NonNullBoolWithDefault @@ -212,7 +213,7 @@ CREATE TABLE NonNullBoolWithDefault [ConditionalFact] public void Correct_arguments_to_scaffolding_typemapper() { - using (var scratch = SqlCeTestStore.Create("StringKeys")) + using (var scratch = JetTestStore.Create("StringKeys")) { scratch.ExecuteNonQuery(@" CREATE TABLE [StringKeysBlogs] ( diff --git a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2EFixture.cs b/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2EFixture.cs deleted file mode 100644 index 62e27ff..0000000 --- a/test/EFCore.Jet.Design.FunctionalTest/ReverseEngineering/SqlCeE2EFixture.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Microsoft.EntityFrameworkCore.Specification.Tests; - -namespace EntityFramework.SqlServerCompact40.Design.FunctionalTest.ReverseEngineering -{ - public class SqlCeE2EFixture - { - public SqlCeE2EFixture() - { - SqlCeTestStore.GetOrCreateShared("E2E", () => { }); - } - } -} diff --git a/test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperSqlCeTest.cs b/test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperJetTest.cs similarity index 96% rename from test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperSqlCeTest.cs rename to test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperJetTest.cs index 7a28284..68c2cc8 100644 --- a/test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperSqlCeTest.cs +++ b/test/EFCore.Jet.Design.FunctionalTest/ScaffoldingTypeMapperJetTest.cs @@ -1,12 +1,12 @@ using System; +using EntityFrameworkCore.Jet.Storage.Internal; using Microsoft.EntityFrameworkCore.Scaffolding.Internal; using Microsoft.EntityFrameworkCore.Storage; -using Microsoft.EntityFrameworkCore.Storage.Internal; using Xunit; -namespace Microsoft.EntityFrameworkCore +namespace EntityFrameworkCore.Jet.Design.FunctionalTests { - public class ScaffoldingTypeMapperSqlCeTest + public class ScaffoldingTypeMapperJetTest { [Theory] [InlineData(false)] @@ -186,6 +186,6 @@ namespace Microsoft.EntityFrameworkCore private static ScaffoldingTypeMapper CreateMapper() => new ScaffoldingTypeMapper( - new SqlCeTypeMapper(new RelationalTypeMapperDependencies())); + new JetTypeMapper(new RelationalTypeMapperDependencies())); } } \ No newline at end of file diff --git a/test/EFCore.Jet.FunctionalTests/Properties/AssemblyInfo.cs b/test/EFCore.Jet.FunctionalTests/Properties/AssemblyInfo.cs index 87a826a..93e5b0b 100644 --- a/test/EFCore.Jet.FunctionalTests/Properties/AssemblyInfo.cs +++ b/test/EFCore.Jet.FunctionalTests/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ using System.Reflection; -[assembly: AssemblyTitle("EntityFrameworkCore.Jet.FunctionalTest")] -[assembly: AssemblyDescription("Functional (integration) tests for Jet Entity framework core provider. These tests are origina EF Core provider tests")] \ No newline at end of file +[assembly: AssemblyTitle("EntityFrameworkCore.Jet.FunctionalTests")] +[assembly: AssemblyDescription("Functional (integration) tests for Jet Entity framework core provider. These tests are original EF Core provider tests")] \ No newline at end of file