Skip to content

Commit

Permalink
Don't check for ASC on indexes.
Browse files Browse the repository at this point in the history
I removed this behavior as ASC is the default.
  • Loading branch information
sethreno committed Apr 22, 2016
1 parent 8baca9c commit 3550716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/DatabaseTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void TestTableIndexesWithFilter() {
var result = db.ScriptCreate();
TestHelper.DropDb("TEST");

Assert.That(result, Is.StringContaining("CREATE NONCLUSTERED INDEX [MyIndex] ON [dbo].[MyTable] ([Id] ASC) WHERE ([EndDate] IS NULL)"));
Assert.That(result, Is.StringContaining("CREATE NONCLUSTERED INDEX [MyIndex] ON [dbo].[MyTable] ([Id]) WHERE ([EndDate] IS NULL)"));
}

[Test]
Expand All @@ -140,7 +140,7 @@ public void TestViewIndexes() {
var result = db.ScriptCreate();
TestHelper.DropDb("TEST");

Assert.That(result, Is.StringContaining("CREATE UNIQUE CLUSTERED INDEX [MyIndex] ON [dbo].[MyView] ([Id] ASC, [Name] ASC)"));
Assert.That(result, Is.StringContaining("CREATE UNIQUE CLUSTERED INDEX [MyIndex] ON [dbo].[MyView] ([Id], [Name])"));
}

[Test]
Expand Down Expand Up @@ -279,7 +279,7 @@ CREATE TYPE [dbo].[MyTableType] AS TABLE(
[Value] [varchar](50) NOT NULL,
PRIMARY KEY CLUSTERED
(
[ID] ASC
[ID]
)
)
Expand Down

0 comments on commit 3550716

Please sign in to comment.