Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid nullability warnings w/ new XUnit.Assert #28843

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/Microsoft.Data.Sqlite.Tests/SqliteCommandTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void CommandText_coalesces_to_empty()
CommandText = null
};

Assert.NotNull(command.CommandText);
Assert.Empty(command.CommandText);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void ConnectionString_coalesces_to_empty()
ConnectionString = null
};

Assert.NotNull(builder.ConnectionString);
Assert.Empty(builder.ConnectionString);
}

Expand Down
1 change: 1 addition & 0 deletions test/Microsoft.Data.Sqlite.Tests/SqliteConnectionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void ConnectionString_coalesces_to_empty()
ConnectionString = null
};

Assert.NotNull(connection.ConnectionString);
Assert.Empty(connection.ConnectionString);
}

Expand Down
2 changes: 2 additions & 0 deletions test/Microsoft.Data.Sqlite.Tests/SqliteParameterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void ParameterName_coalesces_to_empty()
ParameterName = null
};

Assert.NotNull(parameter.ParameterName);
Assert.Empty(parameter.ParameterName);
}

Expand All @@ -68,6 +69,7 @@ public void SourceColumn_coalesces_to_empty()
SourceColumn = null
};

Assert.NotNull(parameter.SourceColumn);
Assert.Empty(parameter.SourceColumn);
}

Expand Down