Skip to content

Commit 018d42c

Browse files
committed
Mysql: Ignore case comparison in test
1 parent 8716307 commit 018d42c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Orm/Xtensive.Orm.Tests/Issues/IssueJira0752_RecycledAttributeDontWorkForPersistentGenericInterface.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ private void TestResutlts(Domain domain, Type type, bool isRecycled)
7878
bool hasCreations;
7979
bool hasRemovals;
8080
if (actionSequences.UpgradingActions != null) {
81-
hasCreations = actionSequences.UpgradingActions.Flatten().OfType<CreateNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName));
82-
hasRemovals = actionSequences.UpgradingActions.Flatten().OfType<RemoveNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName));
81+
hasCreations = actionSequences.UpgradingActions.Flatten().OfType<CreateNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName, StringComparison.OrdinalIgnoreCase));
82+
hasRemovals = actionSequences.UpgradingActions.Flatten().OfType<RemoveNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName, StringComparison.OrdinalIgnoreCase));
8383
Assert.That(hasCreations, Is.True);
8484
Assert.That(hasRemovals, Is.False);
8585
}
8686

87-
hasCreations = actionSequences.FinalActions.Flatten().OfType<CreateNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName));
88-
hasRemovals = actionSequences.FinalActions.Flatten().OfType<RemoveNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName));
87+
hasCreations = actionSequences.FinalActions.Flatten().OfType<CreateNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName, StringComparison.OrdinalIgnoreCase));
88+
hasRemovals = actionSequences.FinalActions.Flatten().OfType<RemoveNodeAction>().Any(x => x.Path.StartsWith("Tables/" + tableName, StringComparison.OrdinalIgnoreCase));
8989

9090
if (domain.Configuration.UpgradeMode.IsMultistage()) {
9191
Assert.That(hasCreations, Is.False);

0 commit comments

Comments
 (0)