Skip to content

Commit 3d269c0

Browse files
committed
Convert to Shouldly.
1 parent 496a8aa commit 3d269c0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Prequel.Tests/SqlCmdPreprocessorInputTests.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ public class SqlCmdPreprocessorInputTests
1111
[Test]
1212
public void Construct_NullName()
1313
{
14-
Invoking(() => new Input(null!, "any"))
15-
.Should().Throw<ArgumentNullException>();
14+
Should.Throw<ArgumentNullException>(
15+
() => new Input(null!, "any")
16+
);
1617
}
1718

1819
[Test]
1920
public void Construct_NullText()
2021
{
21-
Invoking(() => new Input("any", null!))
22-
.Should().Throw<ArgumentNullException>();
22+
Should.Throw<ArgumentNullException>(
23+
() => new Input("any", null!)
24+
);
2325
}
2426
}

0 commit comments

Comments
 (0)