Skip to content

Commit

Permalink
Bump xunit from 2.4.2 to 2.5.0
Browse files Browse the repository at this point in the history
Bumps [xunit](https://github.com/xunit/xunit) from 2.4.2 to 2.5.0.
- [Commits](xunit/xunit@2.4.2...2.5.0)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and roji committed Jul 7, 2023
1 parent 0f72c54 commit 11b39c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.6.3" />
<PackageVersion Include="xunit" Version="2.4.2" />
<PackageVersion Include="xunit" Version="2.5.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.3.2" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@ await Test(
{
var table = Assert.Single(model.Tables);
var index = Assert.Single(table.Indexes);
Assert.Equal(1, index.Columns.Count);
Assert.Single(index.Columns);
Assert.Contains(table.Columns.Single(c => c.Name == "Name"), index.Columns);
// Scaffolding included/covered properties is currently blocked, see #2194
Expand Down Expand Up @@ -2038,7 +2038,7 @@ await Test(
var table = Assert.Single(model.Tables);
var index = Assert.Single(table.Indexes);
Assert.Equal(@"(""Name"" IS NOT NULL)", index.Filter);
Assert.Equal(1, index.Columns.Count);
Assert.Single(index.Columns);
Assert.Contains(table.Columns.Single(c => c.Name == "Name"), index.Columns);
// Scaffolding included/covered properties is currently blocked, see #2194
Expand Down Expand Up @@ -2082,7 +2082,7 @@ await Test(
var table = Assert.Single(model.Tables);
var index = Assert.Single(table.Indexes);
Assert.True(index.IsUnique);
Assert.Equal(1, index.Columns.Count);
Assert.Single(index.Columns);
Assert.Contains(table.Columns.Single(c => c.Name == "Name"), index.Columns);
// Scaffolding included/covered properties is currently blocked, see #2194
Expand Down Expand Up @@ -2128,7 +2128,7 @@ await Test(
var index = Assert.Single(table.Indexes);
Assert.True(index.IsUnique);
Assert.Equal(@"(""Name"" IS NOT NULL)", index.Filter);
Assert.Equal(1, index.Columns.Count);
Assert.Single(index.Columns);
Assert.Contains(table.Columns.Single(c => c.Name == "Name"), index.Columns);
// Scaffolding included/covered properties is currently blocked, see #2194
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void Filter_schemas()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -209,7 +209,7 @@ public void Filter_tables()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -232,7 +232,7 @@ public void Filter_tables_with_qualified_name()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K.2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -256,7 +256,7 @@ public void Filter_tables_with_schema_qualified_name1()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -281,7 +281,7 @@ public void Filter_tables_with_schema_qualified_name2()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K.2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -306,7 +306,7 @@ public void Filter_tables_with_schema_qualified_name3()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K.2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand All @@ -331,7 +331,7 @@ public void Filter_tables_with_schema_qualified_name4()
// ReSharper disable once PossibleNullReferenceException
Assert.Equal("K2", table.Name);
Assert.Equal(2, table.Columns.Count);
Assert.Equal(1, table.UniqueConstraints.Count);
Assert.Single(table.UniqueConstraints);
Assert.Empty(table.ForeignKeys);
},
"""
Expand Down Expand Up @@ -1060,12 +1060,7 @@ CREATE TABLE "SystemColumnsTable"
""",
Enumerable.Empty<string>(),
Enumerable.Empty<string>(),
dbModel =>
{
var columns = dbModel.Tables.Single().Columns;
Assert.Equal(1, columns.Count);
},
dbModel => Assert.Single(dbModel.Tables.Single().Columns),
@"DROP TABLE ""SystemColumnsTable""");

#endregion
Expand Down Expand Up @@ -2027,11 +2022,8 @@ public void Bug453()
""",
Enumerable.Empty<string>(),
Enumerable.Empty<string>(),
dbModel =>
{
// Enum columns are left out of the model for now (a warning is logged).
Assert.Equal(1, dbModel.Tables.Single(t => t.Name == "foo").Columns.Count);
},
// Enum columns are left out of the model for now (a warning is logged).
dbModel => Assert.Single(dbModel.Tables.Single(t => t.Name == "foo").Columns),
"""
DROP TABLE bar;
DROP TABLE foo;
Expand Down

0 comments on commit 11b39c9

Please sign in to comment.