Skip to content

Commit 7dd185f

Browse files
committed
Attempt to plug coverage holes.
1 parent 0b19ee8 commit 7dd185f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

PSql.Tests/Tests.Unit/NewSqlContextCommandTests.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,12 +832,13 @@ public void Frozen_Override_Valid(string expression, bool value)
832832
[Test]
833833
public void ApplyParameterValue_UnrecognizedParameter()
834834
{
835-
var before = new SqlContext();
836-
var after = new SqlContext();
837-
838-
new NewSqlContextCommand().ApplyParameterValue(after, "Unrecognized");
835+
new NewSqlContextCommand().ApplyParameterValue(null!, "Unrecognized");
836+
}
839837

840-
after.ShouldBe(before, StructuralEqualityComparer.Instance);
838+
[Test]
839+
public void ApplyParameterValue_NullParameter()
840+
{
841+
new NewSqlContextCommand().ApplyParameterValue(null!, null!);
841842
}
842843

843844
#endregion

0 commit comments

Comments
 (0)