-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move some provider-facing tests to specifications
* Moved to specifications: ApiConsistency, MigrationsSqlGenerator, UpdateSqlGeneratorTestBase, ModelValidatorTestBase (and Relational) * Rearranged migrations tests under Migrations folder * Reorganized SqlGenerationHelperTest split to simple, separate RelationalSqlGenerationHelperTest and SqlServerSqlGenerationHelperTest * Suppress warning for underscores in test names Closes #11500
- Loading branch information
Showing
23 changed files
with
33 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 17 additions & 2 deletions
19
test/EFCore.Relational.Tests/Storage/RelationalSqlGenerationHelperTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using Xunit; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Storage | ||
{ | ||
public class RelationalSqlGenerationHelperTest : SqlGenerationHelperTestBase | ||
public class RelationalSqlGenerationHelperTest | ||
{ | ||
protected override ISqlGenerationHelper CreateSqlGenerationHelper() | ||
[ConditionalFact] | ||
public void GenerateParameterName_returns_parameter_name() | ||
=> Assert.Equal("@name", CreateSqlGenerationHelper().GenerateParameterName("name")); | ||
|
||
[ConditionalFact] | ||
public void Default_BatchCommandSeparator_is_semicolon() | ||
=> Assert.Equal(";", CreateSqlGenerationHelper().StatementTerminator); | ||
|
||
[ConditionalFact] | ||
public void BatchSeparator_returns_separator() | ||
=> Assert.Equal(Environment.NewLine, CreateSqlGenerationHelper().BatchTerminator); | ||
|
||
private ISqlGenerationHelper CreateSqlGenerationHelper() | ||
=> new RelationalSqlGenerationHelper(new RelationalSqlGenerationHelperDependencies()); | ||
} | ||
} |
34 changes: 0 additions & 34 deletions
34
test/EFCore.Relational.Tests/Storage/SqlGenerationHelperTestBase.cs
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
test/EFCore.Sqlite.Tests/Storage/SqliteSqlGenerationHelperTest.cs
This file was deleted.
Oops, something went wrong.